I do not accept having to rescale images or manually add padding to my images. I have tried fixing this by changing some code in COpenGLTexture:
Before:
Code: Select all
glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, ImageSize.Width,
ImageSize.Height, 0, format, type, ImageData);
Code: Select all
int wpot = NearestPowerOfTwo(ImageSize.Width);
int hpot = NearestPowerOfTwo(ImageSize.Height);
glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, wpot, hpot, 0, format, type, NULL);
glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, ImageSize.Width, ImageSize.Height, format, type, ImageData);
So, any ideas? I need the fastest response I can get on this one.
Thanks.