Fixed crash on AMD, unbinding lights buffers after use.

This commit is contained in:
dexy 2019-12-12 03:18:33 +11:00
parent 73f763de43
commit ee196a8e25

View File

@ -420,7 +420,7 @@ namespace CodeWalker.Rendering
context.VertexShader.Set(null);
context.PixelShader.Set(null);
context.PixelShader.SetShaderResources(0, null, null, null);
context.PixelShader.SetShaderResources(0, null, null, null, null, null, null);
context.PixelShader.SetSamplers(0, null, null);
}
@ -498,8 +498,9 @@ namespace CodeWalker.Rendering
context.VertexShader.Set(null);
context.VertexShader.SetShaderResources(0, null, null, null);
context.PixelShader.Set(null);
context.PixelShader.SetShaderResources(0, null, null, null);
context.PixelShader.SetShaderResources(0, null, null, null, null, null, null, null);
context.PixelShader.SetSamplers(0, null, null);
}
@ -582,8 +583,9 @@ namespace CodeWalker.Rendering
context.VertexShader.Set(null);
context.VertexShader.SetShaderResources(0, null, null, null);
context.PixelShader.Set(null);
context.PixelShader.SetShaderResources(0, null, null, null);
context.PixelShader.SetShaderResources(0, null, null, null, null, null, null, null);
context.PixelShader.SetSamplers(0, null, null);
}