w_reade
2003.12.10, 10:17 AM
This worked on Jaguar:
glGenTextures(1, &GLid);
glBindTexture(GL_TEXTURE_2D, GLid);
if (mipmap)
gluBuild2DMipmaps(GL_TEXTURE_2D,
GL_RGBA,
width,
height,
GL_BGRA,
GL_UNSIGNED_INT_8_8_8_8_REV,
buf);
else
glTexImage2D(GL_TEXTURE_2D,
0,
GL_RGBA,
width,
height,
0,
GL_BGRA,
GL_UNSIGNED_INT_8_8_8_8_REV,
buf);
Now, under Panther, it doesn't.
More specifically, glTexImage2D() just produces an opaque white texture, while gluBuild2DMipmaps() still works as expected.
Am I ignoring some subtle requirement somewhere? The textures are all Po2 square...
glGenTextures(1, &GLid);
glBindTexture(GL_TEXTURE_2D, GLid);
if (mipmap)
gluBuild2DMipmaps(GL_TEXTURE_2D,
GL_RGBA,
width,
height,
GL_BGRA,
GL_UNSIGNED_INT_8_8_8_8_REV,
buf);
else
glTexImage2D(GL_TEXTURE_2D,
0,
GL_RGBA,
width,
height,
0,
GL_BGRA,
GL_UNSIGNED_INT_8_8_8_8_REV,
buf);
Now, under Panther, it doesn't.
More specifically, glTexImage2D() just produces an opaque white texture, while gluBuild2DMipmaps() still works as expected.
Am I ignoring some subtle requirement somewhere? The textures are all Po2 square...