1
0
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:
janwas
2005-09-08 01:47:45 +00:00
parent 5c4069f5e1
commit 494d27bdd4
15 changed files with 272 additions and 164 deletions
-3
View File
@@ -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)