diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-12-29 03:08:40 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-28 21:56:42 +0100 |
commit | 69ad6279e45db408ba3add0b540660ae34ba8e3f (patch) | |
tree | b01bb91ad48fc64ca68cc23c609741dd7d72cf8e /src/video_core/renderer_opengl/renderer_opengl.cpp | |
parent | gl_state_tracker: Implement dirty flags for color masks (diff) | |
download | yuzu-69ad6279e45db408ba3add0b540660ae34ba8e3f.tar yuzu-69ad6279e45db408ba3add0b540660ae34ba8e3f.tar.gz yuzu-69ad6279e45db408ba3add0b540660ae34ba8e3f.tar.bz2 yuzu-69ad6279e45db408ba3add0b540660ae34ba8e3f.tar.lz yuzu-69ad6279e45db408ba3add0b540660ae34ba8e3f.tar.xz yuzu-69ad6279e45db408ba3add0b540660ae34ba8e3f.tar.zst yuzu-69ad6279e45db408ba3add0b540660ae34ba8e3f.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/renderer_opengl.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 3ff7c8fb1..caa193c50 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -576,6 +576,7 @@ 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.NotifyScreenDrawVertexArray(); state_tracker.NotifyViewport0(); state_tracker.NotifyScissor0(); state_tracker.NotifyColorMask0(); @@ -608,6 +609,8 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) { static_cast<GLfloat>(layout.height)); glDepthRangeIndexed(0, 0.0, 0.0); + glEnableVertexAttribArray(PositionLocation); + glEnableVertexAttribArray(TexCoordLocation); glVertexAttribFormat(PositionLocation, 2, GL_FLOAT, GL_FALSE, offsetof(ScreenRectVertex, position)); glVertexAttribFormat(TexCoordLocation, 2, GL_FLOAT, GL_FALSE, |