From 83b12efcff7f76b72d525493dd8ddf9859060897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Tue, 11 Feb 2025 23:09:44 +0100 Subject: [PATCH] Fixed out of bounds access --- .../src/Platform/DX11/Renderer/Dx11GraphicsContext.bf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GlitchyEngine/src/Platform/DX11/Renderer/Dx11GraphicsContext.bf b/GlitchyEngine/src/Platform/DX11/Renderer/Dx11GraphicsContext.bf index 873250e..bdbed7c 100644 --- a/GlitchyEngine/src/Platform/DX11/Renderer/Dx11GraphicsContext.bf +++ b/GlitchyEngine/src/Platform/DX11/Renderer/Dx11GraphicsContext.bf @@ -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); } }