diff options
| author | Markus Wick <markus@selfnet.de> | 2018-08-10 11:40:16 +0200 |
|---|---|---|
| committer | Markus Wick <markus@selfnet.de> | 2018-08-12 16:10:26 +0200 |
| commit | 0af7e937638c3c4b9c12d8625c108adb6ed11791 (patch) | |
| tree | d2c9cce60814a44943642ba6a4960571da7a1b87 /src/video_core/renderer_opengl/gl_state.cpp | |
| parent | 6ff7906ddc89d8f970702d320f29317831de7975 (diff) | |
gl_state: Don't track constant buffer mappings.
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.cpp')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_state.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp index 212c87e0c..1d1975179 100644 --- a/src/video_core/renderer_opengl/gl_state.cpp +++ b/src/video_core/renderer_opengl/gl_state.cpp @@ -203,24 +203,6 @@ 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) { - const auto& current = cur_state.draw.const_buffers[stage][buffer_id]; - const auto& new_state = draw.const_buffers[stage][buffer_id]; - - if (std::tie(current.enabled, current.bindpoint, current.ssbo, current.size, - current.offset) != std::tie(new_state.enabled, new_state.bindpoint, - new_state.ssbo, new_state.size, - new_state.offset)) { - if (new_state.enabled) { - glBindBufferRange(GL_UNIFORM_BUFFER, new_state.bindpoint, new_state.ssbo, - new_state.offset, new_state.size); - } - } - } - } - // Framebuffer if (draw.read_framebuffer != cur_state.draw.read_framebuffer) { glBindFramebuffer(GL_READ_FRAMEBUFFER, draw.read_framebuffer); |
