Hi,
I’m trying to use the OES_draw_texture extension using the SDK 2.4 rel 2, but it crashes the application as soon the GL_TEXTURE_CROP_RECT_OES is defined.
i.e.
unsigned char tex_image[256][256 * 4]; //RGBA
int cropRect[4] = { 0, 0, 256, 256 };
GLuint texture=0;
glEnable(GL_TEXTURE_2D);
glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_2D, texture);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 256, 256, 0, GL_RGBA, GL_UNSIGNED_BYTE, tex_image);
glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, cropRect);//crash
m_Extensions.glDrawTexiOES(0,0,1,256,256);//crash
[/CODE]
In previous version the extension works good.
Thanks.
<br> unsigned char tex_image[256][256 * 4]; //RGBA<br> int cropRect[4] = { 0, 0, 256, 256 };<br><br> GLuint texture=0;<br> glEnable(GL_TEXTURE_2D);<br> glGenTextures(1, &texture);<br> glBindTexture(GL_TEXTURE_2D, texture);<br> glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 256, 256, 0, GL_RGBA, GL_UNSIGNED_BYTE, tex_image);<br> glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, cropRect);//crash<br> m_Extensions.glDrawTexiOES(0,0,1,256,256);//crash<br>
In previous version the extension works good.
Thanks.