--- a/hostsupport/hostopengles20/src/context.c Wed Nov 10 15:26:31 2010 +0000
+++ b/hostsupport/hostopengles20/src/context.c Fri Nov 12 17:56:05 2010 +0000
@@ -31,7 +31,7 @@
DGLContext* DGLContext_create(void* native_context)
{
- DGLContext* ctx = malloc(sizeof(DGLContext));
+ DGLContext* ctx = (DGLContext*)malloc(sizeof(DGLContext));
if(ctx == NULL)
{
return NULL;
@@ -61,7 +61,7 @@
ctx->hgl.GetIntegerv(GL_MAX_VERTEX_ATTRIBS, &temp);
ctx->max_vertex_attribs = temp;
- ctx->vertex_arrays = malloc(ctx->max_vertex_attribs * sizeof(DGLVertexArray));
+ ctx->vertex_arrays = (DGLVertexArray*)malloc(ctx->max_vertex_attribs * sizeof(DGLVertexArray));
if(ctx->vertex_arrays == NULL)
{
return GL_FALSE;
@@ -363,7 +363,7 @@
DGLES2_ASSERT(source != NULL);
DGLES2_ASSERT(length >= 0);
- shader->source = malloc(length + 1);
+ shader->source = (char*)malloc(length + 1);
if(shader->source == NULL)
{
return GL_FALSE;