1
0
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:
Sergey Lipskiy 2017-02-01 14:26:46 +07:00
parent 302f20fa3a
commit dbb827efc1

View File

@ -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;