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:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-05-08 17:31:10 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-05-08 17:31:10 +0300
commit907135011a03620a25043deaf0fdd1742320ee0e (patch)
tree7be08faad588d458fa36a254c59107d0cb5f32d3 /source/blender/editors/screen/glutil.c
parent81ecd3f938ee0e0d02d71f6c6c21a5c0246055d4 (diff)
Fix hardcoded attribute locations used in image draw
Diffstat (limited to 'source/blender/editors/screen/glutil.c')
-rw-r--r--source/blender/editors/screen/glutil.c2
1 files changed, 1 insertions, 1 deletions
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