From 290e080db40e746416d2f70d28cb906ceb4c4723 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Thu, 26 Jan 2017 09:41:40 +0100 Subject: Fix T50530: Crash on Info Editor "console" Introduced on rB2de882e8 - the original size of the array was neglected --- source/blender/editors/space_info/textview.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors') diff --git a/source/blender/editors/space_info/textview.c b/source/blender/editors/space_info/textview.c index b82972853e2..d3c8fed5fc1 100644 --- a/source/blender/editors/space_info/textview.c +++ b/source/blender/editors/space_info/textview.c @@ -194,7 +194,7 @@ static int console_draw_string(ConsoleDrawContext *cdc, const char *str, int str unsigned pos = add_attrib(format, "pos", GL_INT, 2, CONVERT_INT_TO_FLOAT); immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR); - immUniformColor4ubv(bg); + immUniformColor3ubv(bg); immRecti(pos, 0, cdc->xy[1], cdc->winx, (cdc->xy[1] + (cdc->lheight * tot_lines))); immUnbindProgram(); @@ -248,7 +248,7 @@ static int console_draw_string(ConsoleDrawContext *cdc, const char *str, int str unsigned pos = add_attrib(format, "pos", GL_INT, 2, CONVERT_INT_TO_FLOAT); immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR); - immUniformColor4ubv(bg); + immUniformColor3ubv(bg); immRecti(pos, 0, cdc->xy[1], cdc->winx, cdc->xy[1] + cdc->lheight); immUnbindProgram(); -- cgit v1.2.3