Fixed memory pool code.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 19 Feb 2009 03:58:25 -0500
changeset 672 bcca8b3ae152
parent 671 af7b7bfdfc2a
child 673 4b14154df11b
Fixed memory pool code.
mojoshader_preprocessor.c
--- a/mojoshader_preprocessor.c	Thu Feb 19 03:58:14 2009 -0500
+++ b/mojoshader_preprocessor.c	Thu Feb 19 03:58:25 2009 -0500
@@ -362,6 +362,7 @@
 #define PUT_POOL(type, poolname) \
     static void put_##poolname(Context *ctx, type *item) { \
         item->next = ctx->poolname##_pool; \
+        ctx->poolname##_pool = item; \
     }
 
 #define IMPLEMENT_POOL(type, poolname) \