[Bf-blender-cvs] [744cac9] soc-2014-viewport_context: cleaned up and simplified glew-mx.c
Jason Wilkins
noreply at git.blender.org
Sat Jul 26 20:42:20 CEST 2014
Commit: 744cac932c59cdff42b3aa1b4cc99980acb2548e
Author: Jason Wilkins
Date: Sat Jul 26 13:29:44 2014 -0500
Branches: soc-2014-viewport_context
https://developer.blender.org/rB744cac932c59cdff42b3aa1b4cc99980acb2548e
cleaned up and simplified glew-mx.c
===================================================================
M intern/glew-mx/intern/glew-mx.c
===================================================================
diff --git a/intern/glew-mx/intern/glew-mx.c b/intern/glew-mx/intern/glew-mx.c
index a1a03d6..e82a03a 100644
--- a/intern/glew-mx/intern/glew-mx.c
+++ b/intern/glew-mx/intern/glew-mx.c
@@ -49,7 +49,6 @@
#include "glew-mx.h"
#include <stdlib.h>
-#include <string.h>
GLEWContext *_mxContext = NULL;
@@ -65,12 +64,7 @@ void mxSetContext(GLEWContext *ctx)
GLEWContext *mxCreateContext(void)
{
- GLEWContext *ctx = malloc(sizeof(GLEWContext));
-
- if (ctx != NULL)
- memset(ctx, 0, sizeof(GLEWContext));
-
- return ctx;
+ return calloc(1, sizeof(GLEWContext));
}
void mxDestroyContext(GLEWContext *ctx)
More information about the Bf-blender-cvs
mailing list