This too.

--HG--
branch : gsoc2013-dfighter
hg/feature/gsoc2013-dfighter
dfighter1985 12 years ago
parent 35429fea43
commit a1cf2c640b

@ -21,6 +21,9 @@ namespace NL3D
if( !program->isLinked() )
return false;
// Release previous program
releaseProgram();
nglUseProgram( program->getProgramId() );
@ -208,11 +211,12 @@ namespace NL3D
void CDriverGL3::releaseProgram()
{
delete p;
p = NULL;
vp = NULL;
pp = NULL;
if( currentProgram == NULL )
return;
delete currentProgram;
currentProgram = NULL;
#ifndef GLSL
_VertexProgramEnabled = false;
#endif

Loading…
Cancel
Save