summaryrefslogtreecommitdiffstats
Side-by-side diff
-rw-r--r--src/Makefile.am2
-rw-r--r--src/controller/callbacks/reshape.c2
-rw-r--r--src/db/dbconnect.sqc12
-rw-r--r--src/model/data/base.sqc2
-rw-r--r--src/model/state/state.h3
-rw-r--r--src/util/check_error.c6
-rw-r--r--src/util/check_error_db.c13
-rw-r--r--src/util/check_error_db.h9
8 files changed, 40 insertions, 9 deletions
diff --git a/src/model/state/state.h b/src/model/state/state.h
index 6e4f62e..f432017 100644
--- a/src/model/state/state.h
+++ b/src/model/state/state.h
@@ -8,6 +8,7 @@
/*
* Buffer object identifiers.
*/
+#define NUM_BUFFERS 2
#define BASE_VERTICES 0
#define BASE_COLORS 1
@@ -80,7 +81,7 @@ typedef struct
/*
* Buffer objects.
*/
- unsigned int buffers[1];
+ unsigned int buffers[NUM_BUFFERS];
/*
* GI Identifiers indexed by row. Storage is [rows][20].

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.