forked from mirrors/0ad
moved SAFE_DELETE to lib.h
dyn_array supports "wrapping" other types of memory (stopgap measure)
texture codecs now load via DynArray (intermediate step to all mem stuff
going through res/mem.cpp)
simplified tex codecs by doing as many checks as possible in
tex_load_mem ("template method"-esque)
This was SVN commit r2690.
This commit is contained in:
@@ -3,9 +3,6 @@
|
||||
#include "XML/Xeromyces.h"
|
||||
#include "MaterialManager.h"
|
||||
|
||||
#define SAFE_DELETE(x) \
|
||||
if((x)) { delete (x); (x) = NULL; }
|
||||
|
||||
static float ClampFloat(float value, float min, float max)
|
||||
{
|
||||
if(value < min)
|
||||
|
||||
Reference in New Issue
Block a user