author | Don Pellegrino <don@drexel.edu> | 2009-06-16 23:23:16 (GMT) |
---|---|---|
committer | Don Pellegrino <don@drexel.edu> | 2009-06-16 23:23:16 (GMT) |
commit | 0577eee8222645991f8cc68289f6be3bfd0e4d26 (patch) (unidiff) | |
tree | ee7c562315049228ba9689f55e9caa70f2d7f884 | |
parent | 3858c0f0b6f4535178747d4e3d7c592bbffc5045 (diff) | |
download | exp005-0577eee8222645991f8cc68289f6be3bfd0e4d26.zip exp005-0577eee8222645991f8cc68289f6be3bfd0e4d26.tar.gz exp005-0577eee8222645991f8cc68289f6be3bfd0e4d26.tar.bz2 |
Added use of alpha.
-rw-r--r-- | src/controller/clear_selection.sqc | 3 |
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 | } |
35 | 36 | ||
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); |