Alexander Alexander
04-22-2010, 07:57 AM
Hello,
I'm new here and I've searched the answers for a long time without any luck.
The problem is very simple, same code works fine on XP, but displays some white textures and some ok textures on Vista.
here's the code:
glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_2D, texture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA16, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, temp->pixels);
I'm new here and I've searched the answers for a long time without any luck.
The problem is very simple, same code works fine on XP, but displays some white textures and some ok textures on Vista.
here's the code:
glGenTextures(1, &texture);
glBindTexture(GL_TEXTURE_2D, texture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA16, w, h, 0, GL_RGBA, GL_UNSIGNED_BYTE, temp->pixels);