ARB_texture_rg: Handle RED and RG the same as RGB for tex env

This commit is contained in:
Ian Romanick 2010-09-28 13:58:28 -07:00
parent cd5dea6401
commit 214a33f610
1 changed files with 6 additions and 0 deletions

View File

@ -179,6 +179,8 @@ calculate_derived_texenv( struct gl_tex_env_combine_state *state,
break;
case GL_LUMINANCE:
case GL_RED:
case GL_RG:
case GL_RGB:
case GL_YCBCR_MESA:
case GL_DUDV_ATI:
@ -219,6 +221,8 @@ calculate_derived_texenv( struct gl_tex_env_combine_state *state,
case GL_INTENSITY:
state->SourceRGB[0] = GL_PREVIOUS;
break;
case GL_RED:
case GL_RG:
case GL_RGB:
case GL_YCBCR_MESA:
case GL_DUDV_ATI:
@ -244,6 +248,8 @@ calculate_derived_texenv( struct gl_tex_env_combine_state *state,
state->OperandA[2] = GL_SRC_ALPHA;
/* FALLTHROUGH */
case GL_LUMINANCE:
case GL_RED:
case GL_RG:
case GL_RGB:
case GL_LUMINANCE_ALPHA:
case GL_RGBA: