diff options
| author | Subv <subv2112@gmail.com> | 2018-06-09 18:02:05 -0500 |
|---|---|---|
| committer | Subv <subv2112@gmail.com> | 2018-06-09 18:02:05 -0500 |
| commit | 2a7653142dd8adeacafd8c90e64d52d6959f0aa7 (patch) | |
| tree | 45507c03f0a4bfa0fb0dc9736fccd448bb9ea0df /src/video_core/renderer_opengl/gl_state.cpp | |
| parent | d81aaa3ed343f93af800de4eb1312d1bbb38ea2e (diff) | |
Rasterizer: Use UBOs instead of SSBOs for uploading const buffers.
This should help a bit with GPU performance once we're GPU-bound.
Diffstat (limited to 'src/video_core/renderer_opengl/gl_state.cpp')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_state.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp index 44f0c8a01..443ce3f2b 100644 --- a/src/video_core/renderer_opengl/gl_state.cpp +++ b/src/video_core/renderer_opengl/gl_state.cpp @@ -223,7 +223,7 @@ void OpenGLState::Apply() const { if (current.enabled != new_state.enabled || current.bindpoint != new_state.bindpoint || current.ssbo != new_state.ssbo) { if (new_state.enabled) { - glBindBufferBase(GL_SHADER_STORAGE_BUFFER, new_state.bindpoint, new_state.ssbo); + glBindBufferBase(GL_UNIFORM_BUFFER, new_state.bindpoint, new_state.ssbo); } } } |
