diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-29 01:45:56 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 21:56:41 +0100 |
commit | dacf83ac0257727a48c971ca1cfcd220976c461f (patch) | |
tree | d511c48c449859ef44884c8d6c6b4c5a84b740f2 /src/video_core/renderer_opengl/renderer_opengl.cpp | |
parent | maxwell_3d: Flatten cull and front face registers (diff) | |
download | yuzu-dacf83ac0257727a48c971ca1cfcd220976c461f.tar yuzu-dacf83ac0257727a48c971ca1cfcd220976c461f.tar.gz yuzu-dacf83ac0257727a48c971ca1cfcd220976c461f.tar.bz2 yuzu-dacf83ac0257727a48c971ca1cfcd220976c461f.tar.lz yuzu-dacf83ac0257727a48c971ca1cfcd220976c461f.tar.xz yuzu-dacf83ac0257727a48c971ca1cfcd220976c461f.tar.zst yuzu-dacf83ac0257727a48c971ca1cfcd220976c461f.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/renderer_opengl.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 5e16bb99b..36c634e0d 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -482,8 +482,8 @@ void RendererOpenGL::CreateRasterizer() { if (rasterizer) { return; } - rasterizer = - std::make_unique<RasterizerOpenGL>(system, emu_window, screen_info, program_manager); + rasterizer = std::make_unique<RasterizerOpenGL>(system, emu_window, screen_info, + program_manager, state_tracker); } void RendererOpenGL::ConfigureFramebufferTexture(TextureInfo& texture, @@ -576,6 +576,8 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) { glNamedBufferSubData(vertex_buffer.handle, 0, sizeof(vertices), std::data(vertices)); // TODO: Signal state tracker about these changes + state_tracker.NotifyFramebuffer(); + program_manager.UseVertexShader(vertex_program.handle); program_manager.UseGeometryShader(0); program_manager.UseFragmentShader(fragment_program.handle); |