Disable the last shader properly.

This commit is contained in:
Unknown W. Brackets committed 2014-05-31 21:48:12 -07:00
1 parent 21c1c635d8
commit 7c87138915
1 file changed
+3 -1
+3 -1
View File
@@ -19,6 +19,7 @@
#include "gfx_es2/gl_state.h"
#include "Core/Reporting.h"
#include "GPU/GLES/Framebuffer.h"
#include "GPU/GLES/ShaderManager.h"
static const char *stencil_fs =
#ifdef USING_GLES
@@ -83,7 +84,8 @@ bool FramebufferManager::NotifyStencilUpload(u32 addr, int size) {
} else {
glsl_bind(stencilUploadProgram_);
}
gstate_c.shaderChanged = true;
shaderManager_->DirtyLastShader();
MakePixelTexture(Memory::GetPointer(addr), dstBuffer->format, dstBuffer->fb_stride, dstBuffer->width, dstBuffer->height);
DisableState();