mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 03:38:06 +02:00
don't pass GL_INTENSITY for <format> to glTexImage2D - it's illegal
This commit is contained in:
parent
694b10ca6d
commit
22dad683b1
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue