summaryrefslogtreecommitdiff
path: root/DevIL/src-IL/src/il_stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'DevIL/src-IL/src/il_stack.c')
-rw-r--r--DevIL/src-IL/src/il_stack.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/DevIL/src-IL/src/il_stack.c b/DevIL/src-IL/src/il_stack.c
index b10fd149..6add628d 100644
--- a/DevIL/src-IL/src/il_stack.c
+++ b/DevIL/src-IL/src/il_stack.c
@@ -19,13 +19,26 @@
ILuint CurName = 0;
-// Internal functions
-static ILboolean iEnlargeStack();
+// Internal stuff
+
+// Just a guess...seems large enough
+#define I_STACK_INCREMENT 1024
+
+typedef struct iFree
+{
+ ILuint Name;
+ void *Next;
+} iFree;
+static ILboolean iEnlargeStack();
+
static ILuint StackSize = 0;
static ILuint LastUsed = 0;
+
+// two fixed slots - slot 0 is default (fallback) image, slot 1 is temp image
static ILimage **ImageStack = NULL;
+
static iFree *FreeNames = NULL;
static ILboolean OnExit = IL_FALSE;
static ILboolean ParentImage = IL_TRUE;