FX_ENTRY FxBool FX_CALL grSstWinClose( GrContext_t context ) { int i; LOG("grSstWinClose(%d)\r\n", context); for (i=0; i<2; i++) invtex[i] = 0; free_combiners(); glBindFramebuffer( GL_FRAMEBUFFER, 0 ); { for (i=0; i<nb_fb; i++) { glDeleteTextures( 1, &(fbs[i].texid) ); glDeleteFramebuffers( 1, &(fbs[i].fbid) ); glDeleteRenderbuffers( 1, &(fbs[i].zbid) ); glDeleteTextures(1, &(fbs[i].texid)); } } nb_fb = 0; free_textures(); remove_tex(0, 0xfffffff); return FXTRUE; }
void free_textures(void) { remove_tex(0x00000000, 0xFFFFFFFF); if (texture) free(texture); texture = NULL; }
void free_textures() { #ifndef WIN32 // ZIGGY for some reasons, Pj64 doesn't like remove_tex on exit remove_tex(0x00000000, 0xFFFFFFFF); #endif if (texture != NULL) { free(texture); texture = NULL; } }
void free_textures() { remove_tex(0x00000000, 0xFFFFFFFF); }