glTexImage2D does nothing

Started by
11 comments, last by Adrian Bibby Walther 11 years, 10 months ago
Turns out I only fixed the code for "power of 2"-textures.
My graphics card does support GL_ARB_texture_non_power_of_two, and in my other project it worked absolutely fine.
Advertisement

Turns out I only fixed the code for "power of 2"-textures.
My graphics card does support GL_ARB_texture_non_power_of_two, and in my other project it worked absolutely fine.


Are you sure glGetError doesn't detect any problems?
Also, what is your GL version?
Sig: http://glhlib.sourceforge.net
an open source GLU replacement library. Much more modern than GLU.
float matrix[16], inverse_matrix[16];
glhLoadIdentityf2(matrix);
glhTranslatef2(matrix, 0.0, 0.0, 5.0);
glhRotateAboutXf2(matrix, angleInRadians);
glhScalef2(matrix, 1.0, 1.0, -1.0);
glhQuickInvertMatrixf2(matrix, inverse_matrix);
glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

Are you sure glGetError doesn't detect any problems?
Also, what is your GL version?

This time, errors did appear.
I traced (due to the lack of a better word) it back to the SDL OpenGL configuration: I apparently didn't enable SDL_GL_MULTISAMPLEBUFFERS.

~Solved

This topic is closed to new replies.

Advertisement