Fixed out of bounds access

This commit is contained in:
Simon Lübeß
2025-02-11 23:09:44 +01:00
parent 7a306cac69
commit 83b12efcff
@@ -398,8 +398,8 @@ namespace GlitchyEngine.Renderer
using (ContextMonitor.Enter())
{
// Do we need to set here, or is it enough to do it in BindState?
NativeContext.PixelShader.SetShaderResources(0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT, &_vsShaderResources);
NativeContext.VertexShader.SetShaderResources(0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT, &_psShaderResources);
NativeContext.PixelShader.SetShaderResources(0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT, &_vsShaderResources);
NativeContext.VertexShader.SetShaderResources(0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT, &_psShaderResources);
}
}