don't pass GL_INTENSITY for <format> to glTexImage2D - it's illegal

This commit is contained in:
Brian Paul 2004-06-11 15:07:23 +00:00
parent 694b10ca6d
commit 22dad683b1

View file

@ -354,7 +354,8 @@ static void loadTexture( int width, int height,
break;
case GL_INTENSITY:
luminanceSize = 1;
textureFormat = GL_INTENSITY;
/* Note: format=GL_INTENSITY for glTexImage is not legal */
textureFormat = GL_LUMINANCE;
break;
case GL_ALPHA:
alphaSize = 1;