mesa: add GL_DUDV_ATI cases in calculate_derived_texenv()
authorBrian Paul <brianp@vmware.com>
Fri, 13 Mar 2009 14:45:11 +0000 (08:45 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 13 Mar 2009 14:46:03 +0000 (08:46 -0600)
src/mesa/main/texstate.c

index a490dff5e90c967c0f21fd3ffd868c074abf9489..0f91080024360aea3bb18d77cb00606d7e151c2a 100644 (file)
@@ -179,6 +179,7 @@ calculate_derived_texenv( struct gl_tex_env_combine_state *state,
    case GL_LUMINANCE:
    case GL_RGB:
    case GL_YCBCR_MESA:
+   case GL_DUDV_ATI:
       state->SourceA[0] = GL_PREVIOUS;
       break;
       
@@ -218,6 +219,7 @@ calculate_derived_texenv( struct gl_tex_env_combine_state *state,
         break;
       case GL_RGB:
       case GL_YCBCR_MESA:
+      case GL_DUDV_ATI:
         mode_rgb = GL_REPLACE;
         break;
       case GL_RGBA:
@@ -244,6 +246,7 @@ calculate_derived_texenv( struct gl_tex_env_combine_state *state,
       case GL_LUMINANCE_ALPHA:
       case GL_RGBA:
       case GL_YCBCR_MESA:
+      case GL_DUDV_ATI:
         state->SourceRGB[2] = GL_TEXTURE;
         state->SourceA[2]   = GL_TEXTURE;
         state->SourceRGB[0] = GL_CONSTANT;