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:
authorAntonio Vazquez <blendergit@gmail.com>2016-12-20 00:36:56 +0300
committerAntonio Vazquez <blendergit@gmail.com>2016-12-20 00:36:56 +0300
commit76c4f0ec6c61bdc33ae908849f632771a1f997c0 (patch)
treed9e07ba36ed0398caadcb9b01d41e65a1cf1d6ec /source/blender/editors
parent3af98b4c04b33791254a4abe0a03ed65007d5e9a (diff)
Fix parameter error (changes by Mike Erwin)
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 19224edbfe9..fe734954bba 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -2019,7 +2019,7 @@ void ED_region_panels(const bContext *C, ARegion *ar, const char *context, int c
UI_view2d_view_restore(C);
glEnable(GL_BLEND);
VertexFormat* format = immVertexFormat();
- unsigned pos = add_attrib(format, "pos", GL_FLOAT, 2, KEEP_FLOAT);
+ unsigned pos = add_attrib(format, "pos", COMP_I32, 2, CONVERT_INT_TO_FLOAT);
immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR);
immUniformThemeColor((ar->type->regionid == RGN_TYPE_PREVIEW) ? TH_PREVIEW_BACK : TH_BACK);
immRecti(pos, 0, 0, BLI_rcti_size_x(&ar->winrct), BLI_rcti_size_y(&ar->winrct) + 1);