# HG changeset patch # User kazz # Date 1297901607 -32400 # Node ID 80c1d74f2c7f2abb4e6952679b888be1182a0155 # Parent bb17a03bab6046863d9f3275b975d1ca55c72ed4 change the scope of id_count to member variables diff -r bb17a03bab60 -r 80c1d74f2c7f Renderer/Engine/Makefile.def --- 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. diff -r bb17a03bab60 -r 80c1d74f2c7f Renderer/Engine/TextureHash.cc --- 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 #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 diff -r bb17a03bab60 -r 80c1d74f2c7f Renderer/Engine/TextureHash.h --- a/Renderer/Engine/TextureHash.h Wed Feb 16 02:08:17 2011 +0900 +++ b/Renderer/Engine/TextureHash.h Thu Feb 17 09:13:27 2011 +0900 @@ -10,6 +10,7 @@ class TextureHash { public: + int id_count; hashtable *table; TextureHash(void); diff -r bb17a03bab60 -r 80c1d74f2c7f TaskManager/Makefile.def --- a/TaskManager/Makefile.def Wed Feb 16 02:08:17 2011 +0900 +++ b/TaskManager/Makefile.def Thu Feb 17 09:13:27 2011 +0900 @@ -29,7 +29,7 @@ ABIBIT = 64 -OPT = -O9 -DMAIL_QUEUE +OPT = -g -DMAIL_QUEUE # -DEARLY_TOUCH # -g -DTASK_LIST_MAIL -O9