summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--src/controller/clear_selection.sqc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controller/clear_selection.sqc b/src/controller/clear_selection.sqc
index cf04681..65426e5 100644
--- a/src/controller/clear_selection.sqc
+++ b/src/controller/clear_selection.sqc
@@ -31,10 +31,11 @@ clear_selection (void)
31 S.base_colors_data[i][0] = DEFAULT_COLOR_R;31 S.base_colors_data[i][0] = DEFAULT_COLOR_R;
32 S.base_colors_data[i][1] = DEFAULT_COLOR_G;32 S.base_colors_data[i][1] = DEFAULT_COLOR_G;
33 S.base_colors_data[i][2] = DEFAULT_COLOR_B;33 S.base_colors_data[i][2] = DEFAULT_COLOR_B;
34 S.base_colors_data[i][3] = DEFAULT_COLOR_A;
34 }35 }
3536
36 glBindBuffer (GL_ARRAY_BUFFER, S.buffers[BASE_COLORS]);37 glBindBuffer (GL_ARRAY_BUFFER, S.buffers[BASE_COLORS]);
37 glColorPointer (3, GL_FLOAT, 0, 0);38 glColorPointer (4, GL_FLOAT, 0, 0);
38 glBufferData (GL_ARRAY_BUFFER,39 glBufferData (GL_ARRAY_BUFFER,
39 sizeof (S.base_colors_data), S.base_colors_data,40 sizeof (S.base_colors_data), S.base_colors_data,
40 GL_STATIC_DRAW);41 GL_STATIC_DRAW);

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.