[Bf-blender-cvs] [3b98b44] blender2.8: small fix for previous commit
Mike Erwin
noreply at git.blender.org
Wed Dec 14 08:44:41 CET 2016
Commit: 3b98b442235c8f8108d773fe548b1763eb394dde
Author: Mike Erwin
Date: Tue Dec 13 15:03:58 2016 -0500
Branches: blender2.8
https://developer.blender.org/rB3b98b442235c8f8108d773fe548b1763eb394dde
small fix for previous commit
===================================================================
M source/blender/editors/screen/area.c
===================================================================
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 9a04d5e..63c152a 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -223,7 +223,7 @@ static void area_draw_azone_fullscreen(short x1, short y1, short x2, short y2, f
VertexFormat* format = immVertexFormat();
unsigned pos = add_attrib(format, "pos", GL_FLOAT, 2, KEEP_FLOAT);
- unsigned color = add_attrib(format, "color", GL_UNSIGNED_BYTE, 4, KEEP_INT);
+ unsigned color = add_attrib(format, "color", GL_UNSIGNED_BYTE, 4, NORMALIZE_INT_TO_FLOAT);
immAttrib4ub(color, 255, 0, 0, alpha_debug);
immBindBuiltinProgram(GPU_SHADER_2D_FLAT_COLOR);
More information about the Bf-blender-cvs
mailing list