dri/nouveau: Fix up the ADD texture environment on nv0x.
This commit is contained in:
parent
394672659d
commit
c7955f1341
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue