Mercurial > hg > Game > Cerium
changeset 1134:80c1d74f2c7f draft
change the scope of id_count to member variables
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 17 Feb 2011 09:13:27 +0900 |
parents | bb17a03bab60 |
children | 8142e652ea4c |
files | Renderer/Engine/Makefile.def Renderer/Engine/TextureHash.cc Renderer/Engine/TextureHash.h TaskManager/Makefile.def |
diffstat | 4 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Renderer/Engine/Makefile.def Wed Feb 16 02:08:17 2011 +0900 +++ b/Renderer/Engine/Makefile.def Thu Feb 17 09:13:27 2011 +0900 @@ -5,7 +5,7 @@ ABIBIT = 64 ABI = -m$(ABIBIT) CC = g++ -OPT = -O9 +OPT = -g CFLAGS = -Wall $(ABI) $(OPT) # -DDEBUG INCLUDE = -I$(CERIUM)/include/TaskManager -I.
--- a/Renderer/Engine/TextureHash.cc Wed Feb 16 02:08:17 2011 +0900 +++ b/Renderer/Engine/TextureHash.cc Thu Feb 17 09:13:27 2011 +0900 @@ -2,12 +2,10 @@ #include <stdlib.h> #include "TextureHash.h" -static int id_count; - TextureHash::TextureHash(void) { + id_count = 0; int size = sizeof(hashtable)*TABLE_SIZE; - #if defined(__SPU__) || ! defined(HAS_POSIX_MEMALIGN) table = (hashtable*)malloc(size); #else