Restore the texture env mode on SetTexture - Fixes problem in

codesampler demo.
This commit is contained in:
Jason Edmeades 2003-01-21 00:30:27 +00:00 committed by Alexandre Julliard
parent 4a46348a9c
commit ffd4fd517e
1 changed files with 6 additions and 1 deletions

View File

@ -3511,7 +3511,12 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetTextureStageState(LPDIRECT3DDEVICE8 ifa
glDisable(GL_TEXTURE_3D);
checkGLcall("Disable GL_TEXTURE_3D");
}
}
}
/* Re-Enable GL_TEXTURE_ENV_MODE, GL_COMBINE_EXT */
if (Value != D3DTOP_DISABLE) {
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_COMBINE_EXT);
}
/* Now set up the operand correctly */
switch (Value) {