Use correct framebuffer

This commit is contained in:
Simon 2023-11-02 22:04:42 +00:00
parent e7f8770008
commit bde091d6b2

View file

@ -222,7 +222,7 @@ void ovrFramebuffer_Resolve(ovrFramebuffer* frameBuffer) {
int width, height;
R_GetModeInfo(&width, &height, r_mode->integer);
glBindFramebuffer(GL_READ_FRAMEBUFFER, colorTexture);
glBindFramebuffer(GL_READ_FRAMEBUFFER, frameBuffer->FrameBuffers[frameBuffer->TextureSwapChainIndex]);
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
glBlitFramebuffer(0, 0, gAppState.Width, gAppState.Height,
0, 0, width, height,