Mesa (master): mesa: add GL_DUDV_ATI cases in calculate_derived_texenv()

Brian Paul brianp at kemper.freedesktop.org
Fri Mar 13 14:48:12 UTC 2009


Module: Mesa
Branch: master
Commit: ccad1e45289b83d045cf7264f391f7502ef81110
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ccad1e45289b83d045cf7264f391f7502ef81110

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Mar 13 08:45:11 2009 -0600

mesa: add GL_DUDV_ATI cases in calculate_derived_texenv()

---

 src/mesa/main/texstate.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index a490dff..0f91080 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -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;




More information about the mesa-commit mailing list