mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Fix FrameBuffer_RenderBuffer to work on Linux.
This commit is contained in:
parent
1b9c04ade5
commit
26ab545b8a
|
@ -349,7 +349,9 @@ void FrameBuffer_RenderBuffer( u32 address )
|
|||
|
||||
ogl_glBindFramebuffer(GL_READ_FRAMEBUFFER, current->fbo);
|
||||
ogl_glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0);
|
||||
glDrawBuffer( GL_FRONT );
|
||||
glDrawBuffer( GL_BACK );
|
||||
float clearColor[4] = {0.0f, 0.0f, 0.0f, 0.0f};
|
||||
OGL_ClearColorBuffer(clearColor);
|
||||
ogl_glBlitFramebuffer(
|
||||
0, (GLint)(srcY0*OGL.scaleY), OGL.width, (GLint)(srcY1*OGL.scaleY),
|
||||
0, OGL.heightOffset + (GLint)(dstY0*viScaleY), OGL.width, OGL.heightOffset + (GLint)(dstY1*viScaleY),
|
||||
|
@ -371,9 +373,13 @@ void FrameBuffer_RenderBuffer( u32 address )
|
|||
);
|
||||
}
|
||||
}
|
||||
glDrawBuffer( GL_BACK );
|
||||
ogl_glBindFramebuffer(GL_READ_FRAMEBUFFER, 0);
|
||||
ogl_glBindFramebuffer(GL_DRAW_FRAMEBUFFER, frameBuffer.top->fbo);
|
||||
#ifndef __LINUX__
|
||||
SwapBuffers( OGL.hDC );
|
||||
#else
|
||||
OGL_SwapBuffers();
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user