summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_3d.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-08-08 08:07:44 +0200
committerbunnei <bunneidev@gmail.com>2018-08-08 08:10:25 +0200
commit57982df105a6d149cc82292541184e6ceabc288c (patch)
treecafcaec08c7f7f7308f0856a03f1c8310a0a6740 /src/video_core/engines/maxwell_3d.cpp
parentMerge pull request #964 from Hexagon12/lower-logs (diff)
downloadyuzu-57982df105a6d149cc82292541184e6ceabc288c.tar
yuzu-57982df105a6d149cc82292541184e6ceabc288c.tar.gz
yuzu-57982df105a6d149cc82292541184e6ceabc288c.tar.bz2
yuzu-57982df105a6d149cc82292541184e6ceabc288c.tar.lz
yuzu-57982df105a6d149cc82292541184e6ceabc288c.tar.xz
yuzu-57982df105a6d149cc82292541184e6ceabc288c.tar.zst
yuzu-57982df105a6d149cc82292541184e6ceabc288c.zip
Diffstat (limited to 'src/video_core/engines/maxwell_3d.cpp')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index 5c0ae8009..ed22a2090 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -238,6 +238,8 @@ void Maxwell3D::ProcessCBBind(Regs::ShaderStage stage) {
auto& buffer = shader.const_buffers[bind_data.index];
+ ASSERT(bind_data.index < Regs::MaxConstBuffers);
+
buffer.enabled = bind_data.valid.Value() != 0;
buffer.index = bind_data.index;
buffer.address = regs.const_buffer.BufferAddress();