From 2a7653142dd8adeacafd8c90e64d52d6959f0aa7 Mon Sep 17 00:00:00 2001 From: Subv Date: Sat, 9 Jun 2018 18:02:05 -0500 Subject: Rasterizer: Use UBOs instead of SSBOs for uploading const buffers. This should help a bit with GPU performance once we're GPU-bound. --- src/video_core/renderer_opengl/gl_state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/video_core/renderer_opengl/gl_state.cpp') 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); } } } -- cgit v1.2.3