From d3f7647d54957aa8b58243e169e503259e03d427 Mon Sep 17 00:00:00 2001 From: goyuken Date: Mon, 13 May 2013 03:31:43 +0000 Subject: [PATCH] n64: rice: disable all buffer swaps. note to maintainer: no binaries included in this commit --- libmupen64plus/mupen64plus-core/src/api/vidext.c | 2 +- libmupen64plus/mupen64plus-core/src/r4300/interupt.c | 2 +- .../mupen64plus-video-rice/src/OGLGraphicsContext.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libmupen64plus/mupen64plus-core/src/api/vidext.c b/libmupen64plus/mupen64plus-core/src/api/vidext.c index dde055202c..701b5cead7 100644 --- a/libmupen64plus/mupen64plus-core/src/api/vidext.c +++ b/libmupen64plus/mupen64plus-core/src/api/vidext.c @@ -394,7 +394,7 @@ EXPORT m64p_error CALL VidExt_GL_SwapBuffers(void) if (!SDL_WasInit(SDL_INIT_VIDEO)) return M64ERR_NOT_INIT; - SDL_GL_SwapBuffers(); + //SDL_GL_SwapBuffers(); return M64ERR_SUCCESS; } diff --git a/libmupen64plus/mupen64plus-core/src/r4300/interupt.c b/libmupen64plus/mupen64plus-core/src/r4300/interupt.c index 3223583d2e..d752869250 100644 --- a/libmupen64plus/mupen64plus-core/src/r4300/interupt.c +++ b/libmupen64plus/mupen64plus-core/src/r4300/interupt.c @@ -391,7 +391,7 @@ void gen_interupt(void) //if(rompause) //{ osd_render(); // draw Paused message in case gfx.updateScreen didn't do it - VidExt_GL_SwapBuffers(); + //VidExt_GL_SwapBuffers(); // while(rompause) // { //SDL_Delay(10); diff --git a/libmupen64plus/mupen64plus-video-rice/src/OGLGraphicsContext.cpp b/libmupen64plus/mupen64plus-video-rice/src/OGLGraphicsContext.cpp index 2e84bb6c52..abc9c9f184 100644 --- a/libmupen64plus/mupen64plus-video-rice/src/OGLGraphicsContext.cpp +++ b/libmupen64plus/mupen64plus-video-rice/src/OGLGraphicsContext.cpp @@ -394,7 +394,7 @@ void COGLGraphicsContext::UpdateFrame(bool swaponly) if(renderCallback) (*renderCallback)(status.bScreenIsDrawn); - CoreVideo_GL_SwapBuffers(); + //CoreVideo_GL_SwapBuffers(); /*if(options.bShowFPS) {