kamimail
11-10-2009, 10:00 PM
my opengl version is 2.0.
i want to render a scene into a win32 dibsection and there is a RGBA texture whose size is 256*170 , when i set the 32bits image as a texture using the glTexImage2D, it reports 1282 error code,but when i change the bitmap to windows ,it works well.who can tell me how to upload an non-pow-of-2 image as a texture when rendering into a bitmap
i want to render a scene into a win32 dibsection and there is a RGBA texture whose size is 256*170 , when i set the 32bits image as a texture using the glTexImage2D, it reports 1282 error code,but when i change the bitmap to windows ,it works well.who can tell me how to upload an non-pow-of-2 image as a texture when rendering into a bitmap