-rw-r--r-- | src/controller/exp004processhits.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controller/exp004processhits.c b/src/controller/exp004processhits.c index d8ea5b6..ba551f3 100644 --- a/src/controller/exp004processhits.c +++ b/src/controller/exp004processhits.c | |||
@@ -39,6 +39,7 @@ exp004processhits (GLint hits, GLuint buffer[]) | |||
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; |
42 | S.base_colors_data[*hitlist][3] = SELECT_COLOR_A; | ||
42 | 43 | ||
43 | hitlist++; | 44 | hitlist++; |
44 | } | 45 | } |
@@ -46,7 +47,7 @@ exp004processhits (GLint hits, GLuint buffer[]) | |||
46 | selection_to_db (); | 47 | selection_to_db (); |
47 | 48 | ||
48 | glBindBuffer (GL_ARRAY_BUFFER, S.buffers[BASE_COLORS]); | 49 | glBindBuffer (GL_ARRAY_BUFFER, S.buffers[BASE_COLORS]); |
49 | glColorPointer (3, GL_FLOAT, 0, 0); | 50 | glColorPointer (4, GL_FLOAT, 0, 0); |
50 | glBufferData (GL_ARRAY_BUFFER, | 51 | glBufferData (GL_ARRAY_BUFFER, |
51 | sizeof (S.base_colors_data), S.base_colors_data, | 52 | sizeof (S.base_colors_data), S.base_colors_data, |
52 | GL_STATIC_DRAW); | 53 | GL_STATIC_DRAW); |