mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-22 23:12:59 +08:00
Fixed crash on AMD, unbinding lights buffers after use.
This commit is contained in:
parent
73f763de43
commit
ee196a8e25
@ -420,7 +420,7 @@ namespace CodeWalker.Rendering
|
|||||||
|
|
||||||
context.VertexShader.Set(null);
|
context.VertexShader.Set(null);
|
||||||
context.PixelShader.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);
|
context.PixelShader.SetSamplers(0, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -498,8 +498,9 @@ namespace CodeWalker.Rendering
|
|||||||
|
|
||||||
|
|
||||||
context.VertexShader.Set(null);
|
context.VertexShader.Set(null);
|
||||||
|
context.VertexShader.SetShaderResources(0, null, null, null);
|
||||||
context.PixelShader.Set(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);
|
context.PixelShader.SetSamplers(0, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -582,8 +583,9 @@ namespace CodeWalker.Rendering
|
|||||||
|
|
||||||
|
|
||||||
context.VertexShader.Set(null);
|
context.VertexShader.Set(null);
|
||||||
|
context.VertexShader.SetShaderResources(0, null, null, null);
|
||||||
context.PixelShader.Set(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);
|
context.PixelShader.SetSamplers(0, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user