summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--src/controller/clear_selection.sqc14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/controller/clear_selection.sqc b/src/controller/clear_selection.sqc
index b4ff0a3..f43534c 100644
--- a/src/controller/clear_selection.sqc
+++ b/src/controller/clear_selection.sqc
@@ -23,13 +23,17 @@ clear_selection (void)
2323
24 EXEC SQL COMMIT;24 EXEC SQL COMMIT;
2525
26 for (unsigned int i = 0; i < ROWS; i++)26 for (unsigned int i = 0; i < S.rows; i++)
27 {27 {
28 S.selection.set[i] = false;28 S.selection.set[i] = false;
29 S.base_colors_data[i][0] = DEFAULT_COLOR_R;29 float* c = S.base_colors_data + (i * 4);
30 S.base_colors_data[i][1] = DEFAULT_COLOR_G;30 *c = DEFAULT_COLOR_R;
31 S.base_colors_data[i][2] = DEFAULT_COLOR_B;31 c++;
32 S.base_colors_data[i][3] = DEFAULT_COLOR_A;32 *c = DEFAULT_COLOR_G;
33 c++;
34 *c = DEFAULT_COLOR_B;
35 c++;
36 *c = DEFAULT_COLOR_A;
33 }37 }
3438
35 glBindBuffer (GL_ARRAY_BUFFER, S.buffers[BASE_COLORS]);39 glBindBuffer (GL_ARRAY_BUFFER, S.buffers[BASE_COLORS]);

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.