Browse Source
gl_shader_manager: Fix interaction between graphics and compute
gl_shader_manager: Fix interaction between graphics and compute
After a compute shader was set to the pipeline, no graphics shader was invoked again. To address this use glUseProgram to bind compute shaders (without state tracking) and call glUseProgram(0) when transitioning out of it back to the graphics pipeline.pull/15/merge
4 changed files with 39 additions and 29 deletions
-
5src/video_core/renderer_opengl/gl_rasterizer.cpp
-
31src/video_core/renderer_opengl/gl_shader_manager.cpp
-
29src/video_core/renderer_opengl/gl_shader_manager.h
-
3src/video_core/renderer_opengl/renderer_opengl.cpp
Write
Preview
Loading…
Cancel
Save
Reference in new issue