dri/nouveau: Fix up the ADD texture environment on nv0x.

This commit is contained in:
Francisco Jerez 2010-03-01 01:53:22 +01:00
parent 394672659d
commit c7955f1341
2 changed files with 1 additions and 2 deletions

View 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;

View 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: