From 907135011a03620a25043deaf0fdd1742320ee0e Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 8 May 2017 16:31:10 +0200 Subject: Fix hardcoded attribute locations used in image draw --- source/blender/editors/screen/glutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/screen/glutil.c') diff --git a/source/blender/editors/screen/glutil.c b/source/blender/editors/screen/glutil.c index b284800d510..2eb981467f2 100644 --- a/source/blender/editors/screen/glutil.c +++ b/source/blender/editors/screen/glutil.c @@ -242,7 +242,7 @@ void immDrawPixelsTexScaled_clipping(IMMDrawPixelsTexState *state, glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, tex_w, tex_h, 0, format, GL_UNSIGNED_BYTE, NULL); } - unsigned int pos = 0, texco = 1; + unsigned int pos = state->pos, texco = state->texco; /* optional */ /* NOTE: Shader could be null for GLSL OCIO drawing, it is fine, since -- cgit v1.2.3