]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a C++ error
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 29 Jan 2011 00:08:39 +0000 (00:08 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 29 Jan 2011 00:08:39 +0000 (00:08 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10775 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 6b8f5db1698e7d018db747a34c7bf892b1366f40..f094bb2cc0f4c9eec60cbbd1db108705739c6ff5 100644 (file)
@@ -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++)