]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix C++ compile error
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 2 Mar 2013 00:42:01 +0000 (00:42 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 2 Mar 2013 00:42:01 +0000 (00:42 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11922 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index a1530a6fdc5f79207131175e05430d1799086a13..20f94ecd73d76cebdc77e350ee3d5ad36588b08a 100644 (file)
@@ -4702,7 +4702,7 @@ void R_BufferData_NewFrame(void)
        {
                if (r_bufferdata_buffer[r_bufferdata_cycle][type])
                {
-                       R_BufferData_Resize(type, false);
+                       R_BufferData_Resize((r_bufferdata_type_t)type, false);
                        // free all but the head buffer, this is how we recycle obsolete
                        // buffers after they are no longer in use
                        p = &r_bufferdata_buffer[r_bufferdata_cycle][type]->purge;