Skip to content

Commit

Permalink
Should fix FBO issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Mar 30, 2011
1 parent 006948b commit d05379b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gfx/gl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d05379b

Please sign in to comment.