mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-25 16:38:57 +00:00
More programmable pipeline updates
This was SVN commit r1280.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user