From 9e16a3c449725d1144d86d29cb6edd23a7f6a0ab Mon Sep 17 00:00:00 2001 From: Phantom Date: Wed, 31 Jan 2018 00:11:31 +0100 Subject: [PATCH] ConvertD24S8toABGR: fix fb attachment --- src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp index 5fca50b2ff..e7721a812d 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp @@ -1029,6 +1029,7 @@ void RasterizerCacheOpenGL::ConvertD24S8toABGR(GLuint src_tex, glBufferData(GL_PIXEL_PACK_BUFFER, d24s8_abgr_buffer_size, nullptr, GL_STREAM_COPY); } + glFramebufferTexture2D(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, 0, 0); glFramebufferTexture2D(GL_READ_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, GL_TEXTURE_2D, src_tex, 0); glReadPixels(static_cast(src_rect.left), static_cast(src_rect.bottom),