wined3d: Disable specular color when blitting.

This commit is contained in:
Stefan Dösinger 2007-08-14 16:32:35 +02:00 committed by Alexandre Julliard
parent e8cc4db1c7
commit 6857fc6b61
1 changed files with 10 additions and 0 deletions

View File

@ -588,6 +588,16 @@ static inline void SetupForBlit(IWineD3DDeviceImpl *This, WineD3DContext *contex
glColorMask(GL_TRUE, GL_TRUE,GL_TRUE,GL_TRUE); glColorMask(GL_TRUE, GL_TRUE,GL_TRUE,GL_TRUE);
checkGLcall("glColorMask"); checkGLcall("glColorMask");
Context_MarkStateDirty(context, STATE_RENDER(WINED3DRS_CLIPPING)); Context_MarkStateDirty(context, STATE_RENDER(WINED3DRS_CLIPPING));
if (GL_SUPPORT(EXT_SECONDARY_COLOR)) {
glDisable(GL_COLOR_SUM_EXT);
Context_MarkStateDirty(context, STATE_RENDER(WINED3DRS_SPECULARENABLE));
checkGLcall("glDisable(GL_COLOR_SUM_EXT)");
}
if (GL_SUPPORT(NV_REGISTER_COMBINERS)) {
GL_EXTCALL(glFinalCombinerInputNV(GL_VARIABLE_B_NV, GL_SPARE0_NV, GL_UNSIGNED_IDENTITY_NV, GL_RGB));
Context_MarkStateDirty(context, STATE_RENDER(WINED3DRS_SPECULARENABLE));
checkGLcall("glFinalCombinerInputNV");
}
/* Setup transforms */ /* Setup transforms */
glMatrixMode(GL_MODELVIEW); glMatrixMode(GL_MODELVIEW);