dri/nouveau: Fix up the ADD texture environment on nv0x.
authorFrancisco Jerez <currojerez@riseup.net>
Mon, 1 Mar 2010 00:53:22 +0000 (01:53 +0100)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 1 Mar 2010 01:07:01 +0000 (02:07 +0100)
src/mesa/drivers/dri/nouveau/nv04_context.c
src/mesa/drivers/dri/nouveau/nv04_state_raster.c

index 1056171342ced506c3023ef3d9c7a5fbd64d693c..1acd41de54d43df7ae4688fd2295801527eeb085 100644 (file)
@@ -40,6 +40,7 @@ nv04_context_engine(GLcontext *ctx)
 
        if (ctx->Texture.Unit[0].EnvMode == GL_COMBINE ||
            ctx->Texture.Unit[0].EnvMode == GL_BLEND ||
+           ctx->Texture.Unit[0].EnvMode == GL_ADD ||
            ctx->Texture.Unit[1]._ReallyEnabled ||
            ctx->Stencil.Enabled)
                fahrenheit = hw->eng3dm;
index 6d0b262a4d3670de6f7870271a23e6f7da79fb55..b52922ea111170fadb99b36c11af52f592a03791 100644 (file)
@@ -82,8 +82,6 @@ get_texenv_mode(unsigned mode)
        switch (mode) {
        case GL_REPLACE:
                return 0x1;
-       case GL_ADD:
-               return 0x2;
        case GL_DECAL:
                return 0x3;
        case GL_MODULATE: