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:
authorMike Erwin <significant.bit@gmail.com>2016-12-13 23:03:58 +0300
committerMike Erwin <significant.bit@gmail.com>2016-12-13 23:03:58 +0300
commit3b98b442235c8f8108d773fe548b1763eb394dde (patch)
treedcff3ccf13a373db2985a7ddb8e6ba51a8af5a69 /source/blender/editors
parentfe5929636182b6721743893c9a2efce1193d335e (diff)
small fix for previous commit
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/screen/area.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 9a04d5e60bc..63c152af6ec 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);