mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-29 13:30:34 +01:00
ref: gl: psvita: skip deleting the shaders since glDeleteProgram can block for a long time
This commit is contained in:
parent
41c819f3d3
commit
0d04c20578
@ -333,15 +333,18 @@ void VGL_ShimShutdown( void )
|
||||
if ( !vgl_init )
|
||||
return;
|
||||
|
||||
// flush everything that has been rendered this frame to prevent waiting in glDeleteProgram
|
||||
vglSwapBuffers( GL_FALSE );
|
||||
glFinish();
|
||||
glUseProgram( 0 );
|
||||
|
||||
/*
|
||||
// FIXME: this sometimes causes the game to block on glDeleteProgram for up to a minute
|
||||
// but since this is only called on shutdown or game change, it should be fine to skip
|
||||
for ( i = 0; i < MAX_PROGS; ++i )
|
||||
{
|
||||
if ( vgl.progs[i].flags )
|
||||
glDeleteProgram( vgl.progs[i].glprog );
|
||||
}
|
||||
*/
|
||||
|
||||
for ( i = 0; i < VGL_ATTR_MAX; ++i )
|
||||
free( vgl.attrbuf[i] );
|
||||
|
Loading…
Reference in New Issue
Block a user