summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/maxwell_3d.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-05-31 22:33:21 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-06-08 00:47:15 +0200
commit2f2a61887a2830cf8a1d5c40302fa0c199c6e317 (patch)
tree17bb8b94a9f889d4163ae90b99600aea71a2738d /src/video_core/engines/maxwell_3d.cpp
parentMerge pull request #2514 from ReinUsesLisp/opengl-compat (diff)
downloadyuzu-2f2a61887a2830cf8a1d5c40302fa0c199c6e317.tar
yuzu-2f2a61887a2830cf8a1d5c40302fa0c199c6e317.tar.gz
yuzu-2f2a61887a2830cf8a1d5c40302fa0c199c6e317.tar.bz2
yuzu-2f2a61887a2830cf8a1d5c40302fa0c199c6e317.tar.lz
yuzu-2f2a61887a2830cf8a1d5c40302fa0c199c6e317.tar.xz
yuzu-2f2a61887a2830cf8a1d5c40302fa0c199c6e317.tar.zst
yuzu-2f2a61887a2830cf8a1d5c40302fa0c199c6e317.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index 39968d403..08d553696 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -396,12 +396,10 @@ void Maxwell3D::ProcessCBBind(Regs::ShaderStage stage) {
auto& shader = state.shader_stages[static_cast<std::size_t>(stage)];
auto& bind_data = regs.cb_bind[static_cast<std::size_t>(stage)];
- auto& buffer = shader.const_buffers[bind_data.index];
-
ASSERT(bind_data.index < Regs::MaxConstBuffers);
+ auto& buffer = shader.const_buffers[bind_data.index];
buffer.enabled = bind_data.valid.Value() != 0;
- buffer.index = bind_data.index;
buffer.address = regs.const_buffer.BufferAddress();
buffer.size = regs.const_buffer.cb_size;
}