summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-20 07:12:29 +0200
committerLioncash <mathew1800@gmail.com>2018-07-20 07:12:29 +0200
commit0faa13baeb923c29bf99861b840420b6e234c372 (patch)
treea93bdd62d72c9067c415e74ea29ac4a26f38ee1d
parentgl_state: Get rid of mismatched sign conversions (diff)
downloadyuzu-0faa13baeb923c29bf99861b840420b6e234c372.tar
yuzu-0faa13baeb923c29bf99861b840420b6e234c372.tar.gz
yuzu-0faa13baeb923c29bf99861b840420b6e234c372.tar.bz2
yuzu-0faa13baeb923c29bf99861b840420b6e234c372.tar.lz
yuzu-0faa13baeb923c29bf99861b840420b6e234c372.tar.xz
yuzu-0faa13baeb923c29bf99861b840420b6e234c372.tar.zst
yuzu-0faa13baeb923c29bf99861b840420b6e234c372.zip
-rw-r--r--src/video_core/renderer_opengl/gl_state.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp
index 8eced0480..68bacd4c5 100644
--- a/src/video_core/renderer_opengl/gl_state.cpp
+++ b/src/video_core/renderer_opengl/gl_state.cpp
@@ -206,8 +206,9 @@ void OpenGLState::Apply() const {
// Constbuffers
for (std::size_t stage = 0; stage < draw.const_buffers.size(); ++stage) {
for (std::size_t buffer_id = 0; buffer_id < draw.const_buffers[stage].size(); ++buffer_id) {
- auto& current = cur_state.draw.const_buffers[stage][buffer_id];
- auto& new_state = draw.const_buffers[stage][buffer_id];
+ const auto& current = cur_state.draw.const_buffers[stage][buffer_id];
+ const auto& new_state = draw.const_buffers[stage][buffer_id];
+
if (current.enabled != new_state.enabled || current.bindpoint != new_state.bindpoint ||
current.ssbo != new_state.ssbo) {
if (new_state.enabled) {