View Full Version : glCompressedTexImage2D for non compressed image 2d

01-02-2008, 08:28 AM
I like the glCompressedTexImage2D function so for non reason I tryed to load a non compressed image 2D usually loaded with glTexImage2D with it...

Unfortunalety, I get an OpenGL error and image remainds black... I checked in the OpenGL specification and it's actually written that glCompressedTexImage2D take the same formats that glTexImage2D... so I guest It's possible in theory but I might have made a mistake.

Is someone tryed this too? I don't use the swizzling and format cast capability of glTexImage*D so I guest using glCompressedTexImage*D would simply a bit the thing around.


01-02-2008, 08:43 AM
You understood something wrong. You can't load an uncompressed image with this function. See: http://www.opengl.org/sdk/docs/man/xhtml/glCompressedTexImage2D.xml

01-02-2008, 09:26 AM
Right... my mistake sorry...
Thank anyway!

01-02-2008, 09:30 AM
I never visit those man pages before... this is great! Thank again!