Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanne Karhu <jhkarh@gmail.com>2011-03-02 20:49:02 +0300
committerJanne Karhu <jhkarh@gmail.com>2011-03-02 20:49:02 +0300
commit356fb2524c9c3247efa4ebf1ed2eb5f99785799e (patch)
tree26afd62bb745ca17a5c45116e7047148ad21aa67 /source/blender/editors/space_view3d/drawarmature.c
parente6a5715773f8ad09a4666cbb1da3422a1c60526a (diff)
Tsk! glGetFloatv() gives alpha too for GL_CURRENT_COLOR, so a four long vector is needed!
Diffstat (limited to 'source/blender/editors/space_view3d/drawarmature.c')
-rw-r--r--source/blender/editors/space_view3d/drawarmature.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/drawarmature.c b/source/blender/editors/space_view3d/drawarmature.c
index 1b154c498d0..701e9f8af0d 100644
--- a/source/blender/editors/space_view3d/drawarmature.c
+++ b/source/blender/editors/space_view3d/drawarmature.c
@@ -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;