fix d3d state cache

This commit is contained in:
aap 2021-02-06 11:19:04 +01:00
parent 71d132839e
commit 5c95300890

View File

@ -377,6 +377,14 @@ restoreD3d9Device(void)
d3dShaderState.surfProps.ambient = 0.0f;
d3dShaderState.surfProps.specular = 0.0f;
d3dShaderState.surfProps.diffuse = 0.0f;
d3dShaderState.extraSurfProp = 0.0f;
d3dShaderState.numDir = 0;
d3dShaderState.numPoint = 0;
d3dShaderState.numSpot = 0;
d3dShaderState.ambient.red = 0.0f;
d3dShaderState.ambient.green = 0.0f;
d3dShaderState.ambient.blue = 0.0f;
d3dShaderState.ambient.alpha = 0.0f;
}
void