diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-08 08:07:44 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-08-08 08:10:25 +0200 |
commit | 57982df105a6d149cc82292541184e6ceabc288c (patch) | |
tree | cafcaec08c7f7f7308f0856a03f1c8310a0a6740 /src/video_core/renderer_opengl/gl_rasterizer.cpp | |
parent | Merge pull request #964 from Hexagon12/lower-logs (diff) | |
download | yuzu-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/renderer_opengl/gl_rasterizer.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp index c2a931469..601a1084b 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp @@ -659,7 +659,10 @@ u32 RasterizerOpenGL::SetupConstBuffers(Maxwell::ShaderStage stage, GLuint progr auto& buffer_draw_state = state.draw.const_buffers[static_cast<size_t>(stage)][used_buffer.GetIndex()]; - ASSERT_MSG(buffer.enabled, "Attempted to upload disabled constbuffer"); + if (!buffer.enabled) { + continue; + } + buffer_draw_state.enabled = true; buffer_draw_state.bindpoint = current_bindpoint + bindpoint; |