[Bf-blender-cvs] [56e73e31ce8] greasepencil-object: WIP: Replace GL types by generic types

Antonio Vazquez noreply at git.blender.org
Sun Dec 17 20:40:09 CET 2017


Commit: 56e73e31ce8e1737dd26524a7a3f21c023b330e8
Author: Antonio Vazquez
Date:   Sun Dec 17 20:36:08 2017 +0100
Branches: greasepencil-object
https://developer.blender.org/rB56e73e31ce8e1737dd26524a7a3f21c023b330e8

WIP: Replace GL types by generic types

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

M	source/blender/editors/gpencil/gpencil_fill.c

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

diff --git a/source/blender/editors/gpencil/gpencil_fill.c b/source/blender/editors/gpencil/gpencil_fill.c
index 3a50ce37581..15ee10714f8 100644
--- a/source/blender/editors/gpencil/gpencil_fill.c
+++ b/source/blender/editors/gpencil/gpencil_fill.c
@@ -92,11 +92,11 @@ static void gp_draw_offscreen_stroke(const bGPDspoint *points, int totpoints,
 }
 
  /* draw strokes in offscreen buffer */
-static GLubyte *gp_draw_offscreen_strokes(Scene *scene, Object *ob, rcti rect)
+static unsigned int *gp_draw_offscreen_strokes(Scene *scene, Object *ob, rcti rect)
 {
 	bGPdata *gpd = (bGPdata *)ob->data;
 	float diff_mat[4][4];
-	GLubyte* data = (GLubyte *)malloc(rect.xmax * rect.ymax * 4 * sizeof(GLubyte));
+	unsigned int *data = (unsigned int *)malloc(rect.xmax * rect.ymax * 4 * sizeof(unsigned int));
 	if (!gpd) {
 		return NULL;
 	}



More information about the Bf-blender-cvs mailing list