mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Fixed renderCallback call for MupenPlus.
Reset combiner to default state before renderCallback call.
This commit is contained in:
parent
f89811b0f7
commit
cc22e79f51
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "../GLideN64.h"
|
||||
#include "../OpenGL.h"
|
||||
#include "../gDP.h"
|
||||
#include "../Config.h"
|
||||
#include "../Revision.h"
|
||||
|
||||
|
@ -92,8 +93,11 @@ void OGLVideoMupenPlus::_stop()
|
|||
void OGLVideoMupenPlus::_swapBuffers()
|
||||
{
|
||||
// if emulator defined a render callback function, call it before buffer swap
|
||||
if (renderCallback)
|
||||
if (renderCallback != NULL) {
|
||||
glUseProgram(0);
|
||||
gDP.changed |= CHANGED_COMBINE;
|
||||
(*renderCallback)((gSP.changed&CHANGED_CPU_FB_WRITE) == 0 ? 1 : 0);
|
||||
}
|
||||
CoreVideo_GL_SwapBuffers();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user