Commit: 76c4f0ec6c61bdc33ae908849f632771a1f997c0
Author: Antonio Vazquez
Date:   Mon Dec 19 22:36:56 2016 +0100
Branches: blender2.8
https://developer.blender.org/rB76c4f0ec6c61bdc33ae908849f632771a1f997c0

Fix parameter error (changes by Mike Erwin)

===================================================================

M       source/blender/editors/screen/area.c

===================================================================

diff --git a/source/blender/editors/screen/area.c 
b/source/blender/editors/screen/area.c
index 19224ed..fe73495 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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to