glTexSubImage2D and power of 2
Ok, I'm trying my luck at a FreeType font renderer and I have a problem while packing the glyphs into a texture. I use glTexSubImage2D to upload each glyph into a big texture but when I use the glyph's actual size(not power of 2) the image gets distorted but when I expand it to the next power of 2 it is ok.
So while this is not a big deal, looking at the OpenGL documentation provided with the MSDN it says nothing about the width and the height having to be power of 2 in glTexSubImage2D. So is this correct behavior or am I doing something wrong?
Are you using the GL_RGB8 format? It could be a case of
http://www.opengl.org/wiki/index.php/Common_Mistakes#Texture_Upload
http://www.opengl.org/wiki/index.php/Common_Mistakes#Texture_Upload
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement