Tsk! glGetFloatv() gives alpha too for GL_CURRENT_COLOR, so a four long vector is needed!

This commit is contained in:
2011-03-02 17:49:02 +00:00
parent e6a5715773
commit 356fb2524c

View File

@@ -1894,7 +1894,7 @@ static void draw_pose_bones(Scene *scene, View3D *v3d, ARegion *ar, Base *base,
float vec[3];
unsigned char col[4];
float col_f[3];
float col_f[4];
glGetFloatv(GL_CURRENT_COLOR, col_f); /* incase this is not set below */
rgb_float_to_byte(col_f, col);
col[3]= 255;