mirror of
https://github.com/libretro/RetroArch
synced 2025-02-25 21:41:03 +00:00
Should fix FBO issue.
This commit is contained in:
parent
006948b973
commit
d05379b340
6
gfx/gl.c
6
gfx/gl.c
@ -1059,14 +1059,16 @@ static bool gl_xml_shader(void *data, const char *path)
|
||||
{
|
||||
pglDeleteFramebuffers(gl->fbo_pass, gl->fbo);
|
||||
glDeleteTextures(gl->fbo_pass, gl->fbo_texture);
|
||||
memset(gl->fbo_texture, 0, gl->fbo_pass * sizeof(GLuint));
|
||||
memset(gl->fbo, 0, gl->fbo_pass * sizeof(GLuint));
|
||||
memset(gl->fbo_texture, 0, sizeof(gl->fbo_texture));
|
||||
memset(gl->fbo, 0, sizeof(gl->fbo));
|
||||
gl->fbo_inited = false;
|
||||
gl->render_to_tex = false;
|
||||
gl->fbo_pass = 0;
|
||||
|
||||
if (!gl_check_error())
|
||||
SSNES_WARN("Failed to deinit FBO properly!\n");
|
||||
|
||||
glBindTexture(GL_TEXTURE_2D, gl->texture);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user