diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-26 08:01:11 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 21:35:58 +0100 |
commit | 9677db03da37a61248c2ced49a9a5e53c872cc63 (patch) | |
tree | 2f8bce89547542b3e7f39e34f49ffc05b0bf5813 /src/video_core/renderer_opengl/renderer_opengl.cpp | |
parent | gl_state: Remove blend state tracking (diff) | |
download | yuzu-9677db03da37a61248c2ced49a9a5e53c872cc63.tar yuzu-9677db03da37a61248c2ced49a9a5e53c872cc63.tar.gz yuzu-9677db03da37a61248c2ced49a9a5e53c872cc63.tar.bz2 yuzu-9677db03da37a61248c2ced49a9a5e53c872cc63.tar.lz yuzu-9677db03da37a61248c2ced49a9a5e53c872cc63.tar.xz yuzu-9677db03da37a61248c2ced49a9a5e53c872cc63.tar.zst yuzu-9677db03da37a61248c2ced49a9a5e53c872cc63.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/renderer_opengl.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 053d8602b..1295121f5 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -566,7 +566,6 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) { }; glNamedBufferSubData(vertex_buffer.handle, 0, sizeof(vertices), std::data(vertices)); - state.textures[0] = screen_info.display_texture; state.Apply(); // TODO: Signal state tracker about these changes @@ -598,11 +597,13 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) { glVertexAttribBinding(TexCoordLocation, 0); glBindVertexBuffer(0, vertex_buffer.handle, 0, sizeof(ScreenRectVertex)); + glBindTextureUnit(0, screen_info.display_texture); + glBindSampler(0, 0); + glClear(GL_COLOR_BUFFER_BIT); glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); // Restore default state - state.textures[0] = 0; state.Apply(); } |