diff options
author | Janne Karhu <jhkarh@gmail.com> | 2011-03-02 20:49:02 +0300 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2011-03-02 20:49:02 +0300 |
commit | 356fb2524c9c3247efa4ebf1ed2eb5f99785799e (patch) | |
tree | 26afd62bb745ca17a5c45116e7047148ad21aa67 /source | |
parent | e6a5715773f8ad09a4666cbb1da3422a1c60526a (diff) |
Tsk! glGetFloatv() gives alpha too for GL_CURRENT_COLOR, so a four long vector is needed!
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_view3d/drawarmature.c | 2 |
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; |