]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_screen.c
added R_Mesh_Draw_ShowTris function which draws a triangle mesh as lines
[xonotic/darkplaces.git] / cl_screen.c
index b9bf5ab3386e8192b655581ea333d919f32d4488..c485c80578f6fb7cfbe4a7cb87ff8f86d751cfe4 100644 (file)
@@ -621,7 +621,7 @@ void DrawQ_Mesh (drawqueuemesh_t *mesh, int flags)
 void DrawQ_SetClipArea(float x, float y, float width, float height)
 {
        drawqueue_t * dq;
-       if(r_refdef.drawqueuesize + sizeof(*dq) > r_refdef.maxdrawqueuesize)
+       if(r_refdef.drawqueuesize + (int)sizeof(*dq) > r_refdef.maxdrawqueuesize)
        {
                Con_DPrintf("DrawQueue full !\n");
                return;
@@ -642,7 +642,7 @@ void DrawQ_SetClipArea(float x, float y, float width, float height)
 void DrawQ_ResetClipArea(void)
 {
        drawqueue_t *dq;
-       if(r_refdef.drawqueuesize + sizeof(*dq) > r_refdef.maxdrawqueuesize)
+       if(r_refdef.drawqueuesize + (int)sizeof(*dq) > r_refdef.maxdrawqueuesize)
        {
                Con_DPrintf("DrawQueue full !\n");
                return;