mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 09:58:46 +00:00
fix crash when a shader fails to build
--HG-- branch : develop
This commit is contained in:
parent
56988bf85b
commit
83a81801ea
2 changed files with 4 additions and 4 deletions
|
@ -122,7 +122,7 @@ bool CDriverGL::compilePixelProgram(NL3D::CPixelProgram *program)
|
|||
{
|
||||
delete drvInfo;
|
||||
program->m_DrvInfo = NULL;
|
||||
_GPUPrgDrvInfos.erase(it);
|
||||
//_GPUPrgDrvInfos.erase(it); // not needed as ~IProgramDrvInfos() already does it
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -178,7 +178,7 @@ bool CDriverGL::compileNVVertexProgram(CVertexProgram *program)
|
|||
// Setup not ok
|
||||
delete drvInfo;
|
||||
program->m_DrvInfo = NULL;
|
||||
_GPUPrgDrvInfos.erase(it);
|
||||
//_GPUPrgDrvInfos.erase(it); // not needed as ~IProgramDrvInfos() already does it
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1568,7 +1568,7 @@ bool CDriverGL::compileARBVertexProgram(NL3D::CVertexProgram *program)
|
|||
{
|
||||
delete drvInfo;
|
||||
program->m_DrvInfo = NULL;
|
||||
_GPUPrgDrvInfos.erase(it);
|
||||
//_GPUPrgDrvInfos.erase(it); // not needed as ~IProgramDrvInfos() already does it
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -1695,7 +1695,7 @@ bool CDriverGL::compileEXTVertexShader(CVertexProgram *program)
|
|||
{
|
||||
delete drvInfo;
|
||||
program->m_DrvInfo = NULL;
|
||||
_GPUPrgDrvInfos.erase(it);
|
||||
//_GPUPrgDrvInfos.erase(it); // not needed as ~IProgramDrvInfos() already does it
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue