From: havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Sat, 29 Jan 2011 00:08:39 +0000 (+0000)
Subject: fix a C++ error
X-Git-Tag: xonotic-v0.5.0~438^2~66
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d52172d3086e098ecb4a5167076ec34f88f7eae9;p=xonotic%2Fdarkplaces.git

fix a C++ error


git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10775 d7cf8633-e32d-0410-b094-e92efae38249
---

diff --git a/gl_rmain.c b/gl_rmain.c
index 6b8f5db1..f094bb2c 100644
--- a/gl_rmain.c
+++ b/gl_rmain.c
@@ -12220,7 +12220,7 @@ void RSurf_PrepareVerticesForBatch(int batchneed, int texturenumsurfaces, const
 		break;
 	case Q3TCGEN_ENVIRONMENT:
 		// make environment reflections using a spheremap
-		rsurface.batchtexcoordtexture2f = R_FrameData_Alloc(batchnumvertices * sizeof(float[2]));
+		rsurface.batchtexcoordtexture2f = (float *)R_FrameData_Alloc(batchnumvertices * sizeof(float[2]));
 		rsurface.batchtexcoordtexture2f_vertexbuffer = NULL;
 		rsurface.batchtexcoordtexture2f_bufferoffset = 0;
 		for (j = 0;j < batchnumvertices;j++)