Hello..
I have a 3d texture which i update using the code
unsigned char *p = new unsigned char[ x * y * z ];
memset( p, 0, x * y * z );
glGenTextures(1, &g_Texture3D );
glBindTexture(GL_TEXTURE_3D, g_Texture3D );
glTexImage3DEXT(GL_TEXTURE_3D, 0, GL_RGBA, x, y, z, 0, GL_LUMINANCE, GL_UNSIGNED_BYTE, p );
This code works well when X is even but glTexImage3DEXT crashes when x is odd.
Y and Z works doesnt seem to have such limitation.
Please help
I have a 3d texture which i update using the code
unsigned char *p = new unsigned char[ x * y * z ];
memset( p, 0, x * y * z );
glGenTextures(1, &g_Texture3D );
glBindTexture(GL_TEXTURE_3D, g_Texture3D );
glTexImage3DEXT(GL_TEXTURE_3D, 0, GL_RGBA, x, y, z, 0, GL_LUMINANCE, GL_UNSIGNED_BYTE, p );
This code works well when X is even but glTexImage3DEXT crashes when x is odd.
Y and Z works doesnt seem to have such limitation.
Please help