]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
I hope this fixes some warnings
authorblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 21 Oct 2003 12:59:55 +0000 (12:59 +0000)
committerblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 21 Oct 2003 12:59:55 +0000 (12:59 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3599 d7cf8633-e32d-0410-b094-e92efae38249

cl_screen.c
gl_backend.c
gl_backend.h

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;
index 70810fce77c665dbd7c83b2380e4845687bb4203..cb450bde6c68950a1a817ce2d2e6f92af2241031 100644 (file)
@@ -613,7 +613,7 @@ void GL_Scissor (int x, int y, int width, int height)
        CHECKGLERROR
 }
 
-void GL_ScissorTest(qboolean state)
+void GL_ScissorTest(int state)
 {
        if(gl_state.scissortest == state)
                return;
index 199e064a5bb62c19136ed6571ddaedf9bab42d8b..72ce432251317ca2f7ee3865de7fc8ca96117c69 100644 (file)
@@ -24,7 +24,7 @@ void GL_LockArrays(int first, int count);
 void GL_ActiveTexture(int num);
 void GL_ClientActiveTexture(int num);
 void GL_Scissor(int x, int y, int width, int height); // AK for DRAWQUEUE_SETCLIP
-void GL_ScissorTest(qboolean state);   // AK for DRAWQUEUE_(RE)SETCLIP
+void GL_ScissorTest(int state);        // AK for DRAWQUEUE_(RE)SETCLIP
  
 
 extern cvar_t gl_lockarrays;