mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00:00
Tried to avoid glDeleteShader crash
This commit is contained in:
parent
ccfaabd1d7
commit
237e7989b4
2 changed files with 16 additions and 2 deletions
|
|
@ -665,7 +665,14 @@ void GLVertexProgram::Delete()
|
|||
|
||||
if(id)
|
||||
{
|
||||
glDeleteShader(id);
|
||||
if (Emu.IsStopped())
|
||||
{
|
||||
ConLog.Warning("GLVertexProgram::Delete(): glDeleteShader(%d) avoided", id);
|
||||
}
|
||||
else
|
||||
{
|
||||
glDeleteShader(id);
|
||||
}
|
||||
id = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue