hostsupport/hostopengles20/src/vertex.c
branchbug235_bringup_0
changeset 76 24381b61de5c
parent 55 09263774e342
--- a/hostsupport/hostopengles20/src/vertex.c	Wed Nov 10 15:26:31 2010 +0000
+++ b/hostsupport/hostopengles20/src/vertex.c	Fri Nov 12 17:56:05 2010 +0000
@@ -89,12 +89,12 @@
 			{
 				if(type == DGLES2_TYPE_INT)
 				{
-					ctx->hgl.GetVertexAttribiv(index, GL_CURRENT_VERTEX_ATTRIB, params);
+					ctx->hgl.GetVertexAttribiv(index, GL_CURRENT_VERTEX_ATTRIB, (GLint*)params);
 				}
 				else
 				{
 					DGLES2_ASSERT(type == DGLES2_TYPE_FLOAT);
-					ctx->hgl.GetVertexAttribfv(index, GL_CURRENT_VERTEX_ATTRIB, params);
+					ctx->hgl.GetVertexAttribfv(index, GL_CURRENT_VERTEX_ATTRIB, (GLfloat*)params);
 				}
 			}
 			return GL_TRUE;
@@ -165,7 +165,7 @@
 
 				if(va->floatptr) free(va->floatptr);
 
-				va->floatptr = malloc(sizeof(GLfloat)*count*va->size);
+				va->floatptr = (GLfloat*)malloc(sizeof(GLfloat)*count*va->size);
 				{
 					GLsizei j;
 					for(j = 0; j < count; ++j)
@@ -449,4 +449,3 @@
 	}
 	DGLES2_LEAVE();
 }
-