summaryrefslogtreecommitdiffstats
authorDon Pellegrino <don@drexel.edu>2009-06-16 23:23:16 (GMT)
committer Don Pellegrino <don@drexel.edu>2009-06-16 23:23:16 (GMT)
commit0577eee8222645991f8cc68289f6be3bfd0e4d26 (patch) (side-by-side diff)
treeee7c562315049228ba9689f55e9caa70f2d7f884
parent3858c0f0b6f4535178747d4e3d7c592bbffc5045 (diff)
downloadexp005-0577eee8222645991f8cc68289f6be3bfd0e4d26.zip
exp005-0577eee8222645991f8cc68289f6be3bfd0e4d26.tar.gz
exp005-0577eee8222645991f8cc68289f6be3bfd0e4d26.tar.bz2
Added use of alpha.
-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)
S.base_colors_data[i][0] = DEFAULT_COLOR_R;
S.base_colors_data[i][1] = DEFAULT_COLOR_G;
S.base_colors_data[i][2] = DEFAULT_COLOR_B;
+ S.base_colors_data[i][3] = DEFAULT_COLOR_A;
}
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.