Should fix FBO issue.

This commit is contained in:
Themaister 2011-03-30 11:12:27 +02:00
parent 006948b973
commit d05379b340

View File

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