-rw-r--r-- | src/controller/exp004processhits.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controller/exp004processhits.c b/src/controller/exp004processhits.c index ba551f3..84f8b8d 100644 --- a/src/controller/exp004processhits.c +++ b/src/controller/exp004processhits.c | |||
@@ -3,7 +3,7 @@ | |||
3 | #define GL_GLEXT_PROTOTYPES | 3 | #define GL_GLEXT_PROTOTYPES |
4 | 4 | ||
5 | #include "exp004processhits.h" | 5 | #include "exp004processhits.h" |
6 | #include "selection_to_db.h" | 6 | #include "selsave.h" |
7 | #include "../view/exp004state0.h" | 7 | #include "../view/exp004state0.h" |
8 | #include <stdio.h> | 8 | #include <stdio.h> |
9 | 9 | ||
@@ -35,7 +35,7 @@ exp004processhits (GLint hits, GLuint buffer[]) | |||
35 | /* | 35 | /* |
36 | * Add the hits to the selection. | 36 | * Add the hits to the selection. |
37 | */ | 37 | */ |
38 | S.selection[*hitlist] = true; | 38 | S.selection.set[*hitlist] = true; |
39 | S.base_colors_data[*hitlist][0] = SELECT_COLOR_R; | 39 | S.base_colors_data[*hitlist][0] = SELECT_COLOR_R; |
40 | S.base_colors_data[*hitlist][1] = SELECT_COLOR_G; | 40 | S.base_colors_data[*hitlist][1] = SELECT_COLOR_G; |
41 | S.base_colors_data[*hitlist][2] = SELECT_COLOR_B; | 41 | S.base_colors_data[*hitlist][2] = SELECT_COLOR_B; |
@@ -44,7 +44,7 @@ exp004processhits (GLint hits, GLuint buffer[]) | |||
44 | hitlist++; | 44 | hitlist++; |
45 | } | 45 | } |
46 | 46 | ||
47 | selection_to_db (); | 47 | selsave (); |
48 | 48 | ||
49 | glBindBuffer (GL_ARRAY_BUFFER, S.buffers[BASE_COLORS]); | 49 | glBindBuffer (GL_ARRAY_BUFFER, S.buffers[BASE_COLORS]); |
50 | glColorPointer (4, GL_FLOAT, 0, 0); | 50 | glColorPointer (4, GL_FLOAT, 0, 0); |