-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/controller/callbacks/reshape.c | 2 | ||||
-rw-r--r-- | src/db/dbconnect.sqc | 12 | ||||
-rw-r--r-- | src/model/data/base.sqc | 2 | ||||
-rw-r--r-- | src/model/state/state.h | 3 | ||||
-rw-r--r-- | src/util/check_error.c | 6 | ||||
-rw-r--r-- | src/util/check_error_db.c | 13 | ||||
-rw-r--r-- | src/util/check_error_db.h | 9 |
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 @@ | |||
8 | /* | 8 | /* |
9 | * Buffer object identifiers. | 9 | * Buffer object identifiers. |
10 | */ | 10 | */ |
11 | #define NUM_BUFFERS 2 | ||
11 | #define BASE_VERTICES 0 | 12 | #define BASE_VERTICES 0 |
12 | #define BASE_COLORS 1 | 13 | #define BASE_COLORS 1 |
13 | 14 | ||
@@ -80,7 +81,7 @@ typedef struct | |||
80 | /* | 81 | /* |
81 | * Buffer objects. | 82 | * Buffer objects. |
82 | */ | 83 | */ |
83 | unsigned int buffers[1]; | 84 | unsigned int buffers[NUM_BUFFERS]; |
84 | 85 | ||
85 | /* | 86 | /* |
86 | * GI Identifiers indexed by row. Storage is [rows][20]. | 87 | * GI Identifiers indexed by row. Storage is [rows][20]. |