summaryrefslogtreecommitdiffstats
Side-by-side diff
-rw-r--r--src/controller/exp004processhits.c3
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[])
S.base_colors_data[*hitlist][0] = SELECT_COLOR_R;
S.base_colors_data[*hitlist][1] = SELECT_COLOR_G;
S.base_colors_data[*hitlist][2] = SELECT_COLOR_B;
+ S.base_colors_data[*hitlist][3] = SELECT_COLOR_A;
hitlist++;
}
@@ -46,7 +47,7 @@ exp004processhits (GLint hits, GLuint buffer[])
selection_to_db ();
glBindBuffer (GL_ARRAY_BUFFER, S.buffers[BASE_COLORS]);
- glColorPointer (3, GL_FLOAT, 0, 0);
+ glColorPointer (4, GL_FLOAT, 0, 0);
glBufferData (GL_ARRAY_BUFFER,
sizeof (S.base_colors_data), S.base_colors_data,
GL_STATIC_DRAW);

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.