From 0577eee8222645991f8cc68289f6be3bfd0e4d26 Mon Sep 17 00:00:00 2001 From: Don Pellegrino Date: Tue, 16 Jun 2009 23:23:16 +0000 Subject: Added use of alpha. --- 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); -- cgit v0.8.3.1-22-g547a