diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-05-19 02:07:18 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:32 +0200 |
commit | 85fc7e584ef9d64bae3269e7993bbf919bd10640 (patch) | |
tree | 21e7c0372b7011a1e9d915da8d7bfdd35dd793c8 | |
parent | glasm: Implement gl_WorkGroupID (diff) | |
download | yuzu-85fc7e584ef9d64bae3269e7993bbf919bd10640.tar yuzu-85fc7e584ef9d64bae3269e7993bbf919bd10640.tar.gz yuzu-85fc7e584ef9d64bae3269e7993bbf919bd10640.tar.bz2 yuzu-85fc7e584ef9d64bae3269e7993bbf919bd10640.tar.lz yuzu-85fc7e584ef9d64bae3269e7993bbf919bd10640.tar.xz yuzu-85fc7e584ef9d64bae3269e7993bbf919bd10640.tar.zst yuzu-85fc7e584ef9d64bae3269e7993bbf919bd10640.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_graphics_program.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_graphics_program.cpp b/src/video_core/renderer_opengl/gl_graphics_program.cpp index 7c0bf7bc8..4ac026502 100644 --- a/src/video_core/renderer_opengl/gl_graphics_program.cpp +++ b/src/video_core/renderer_opengl/gl_graphics_program.cpp @@ -240,6 +240,17 @@ void GraphicsProgram::Configure(bool is_indexed) { buffer_cache.UpdateGraphicsBuffers(is_indexed); buffer_cache.BindHostGeometryBuffers(is_indexed); + // FIXME: Unhack this + if (assembly_programs[0].handle != 0) { + // TODO: State track this + glEnable(GL_VERTEX_PROGRAM_NV); + glEnable(GL_FRAGMENT_PROGRAM_NV); + glBindProgramARB(GL_VERTEX_PROGRAM_NV, assembly_programs[0].handle); + glBindProgramARB(GL_FRAGMENT_PROGRAM_NV, assembly_programs[4].handle); + program_manager.BindProgram(0); + } else { + program_manager.BindProgram(program.handle); + } const ImageId* views_it{image_view_ids.data()}; GLsizei texture_binding = 0; GLsizei image_binding = 0; |