mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Do not call glUseProgram(0) directly in DisplayWindowMupen64plus::_swapBuffers()
This commit is contained in:
parent
302f20fa3a
commit
dbb827efc1
|
@ -1,4 +1,5 @@
|
|||
#include <stdio.h>
|
||||
#include <Graphics/Context.h>
|
||||
#include <Graphics/OpenGLContext/GLFunctions.h>
|
||||
#include <Graphics/OpenGLContext/opengl_Utils.h>
|
||||
#include <mupenplus/GLideN64_mupenplus.h>
|
||||
|
@ -126,7 +127,7 @@ void DisplayWindowMupen64plus::_swapBuffers()
|
|||
{
|
||||
// if emulator defined a render callback function, call it before buffer swap
|
||||
if (renderCallback != nullptr) {
|
||||
glUseProgram(0);
|
||||
gfxContext.resetShaderProgram();
|
||||
if (config.frameBufferEmulation.N64DepthCompare == 0) {
|
||||
glViewport(0, getHeightOffset(), getScreenWidth(), getScreenHeight());
|
||||
gSP.changed |= CHANGED_VIEWPORT;
|
||||
|
|
Loading…
Reference in New Issue
Block a user