[Bf-blender-cvs] [870568a0efb] greasepencil-object: Replace GL_FLOAT
Antonio Vazquez
noreply at git.blender.org
Mon Apr 10 13:35:27 CEST 2017
Commit: 870568a0efb28f5194348f7f7950b1aee64ba238
Author: Antonio Vazquez
Date: Mon Apr 10 13:33:09 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB870568a0efb28f5194348f7f7950b1aee64ba238
Replace GL_FLOAT
===================================================================
M source/blender/draw/intern/draw_cache.c
===================================================================
diff --git a/source/blender/draw/intern/draw_cache.c b/source/blender/draw/intern/draw_cache.c
index 4e4281679f9..168e8edef07 100644
--- a/source/blender/draw/intern/draw_cache.c
+++ b/source/blender/draw/intern/draw_cache.c
@@ -454,7 +454,7 @@ Batch *DRW_cache_gpencil_axes_get(void)
static VertexFormat format = { 0 };
static unsigned pos_id;
if (format.attrib_ct == 0) {
- pos_id = VertexFormat_add_attrib(&format, "pos", GL_FLOAT, 3, KEEP_FLOAT);
+ pos_id = VertexFormat_add_attrib(&format, "pos", COMP_F32, 3, KEEP_FLOAT);
}
VertexBuffer *vbo = VertexBuffer_create_with_format(&format);
@@ -477,7 +477,7 @@ Batch *DRW_cache_gpencil_axes_get(void)
VertexBuffer_set_attrib(vbo, pos_id, i + 6, verts[indices[i]]);
}
- SHC.drw_gpencil_axes = Batch_create(GL_LINES, vbo, NULL);
+ SHC.drw_gpencil_axes = Batch_create(PRIM_LINES, vbo, NULL);
}
return SHC.drw_gpencil_axes;
}
More information about the Bf-blender-cvs
mailing list