More programmable pipeline updates

This was SVN commit r1280.
This commit is contained in:
Calefaction
2004-10-30 21:57:46 +00:00
parent 2cf79ca6cf
commit 955ddcf9a1
14 changed files with 143 additions and 50 deletions
+6 -1
View File
@@ -1,6 +1,9 @@
#include "precompiled.h"
#include "graphics/ProgramManager.h"
#define SAFE_DELETE(x) \
if((x)) { delete (x); (x) = NULL; }
CProgramManager::CProgramManager()
{
#ifdef BUILD_CG
@@ -31,7 +34,9 @@ CVertexProgram *CProgramManager::FindVertexProgram(const char *file)
if(prog && prog->IsValid())
m_VertexProgs[std::string(file)] = prog;
else
prog = NULL;
{
SAFE_DELETE(prog);
}
}
return prog;