From: black Date: Tue, 21 Oct 2003 12:59:55 +0000 (+0000) Subject: I hope this fixes some warnings X-Git-Tag: xonotic-v0.1.0preview~6298 X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=1a497c66e80784bf610bdcd35c60031141e8544f;p=xonotic%2Fdarkplaces.git I hope this fixes some warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3599 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_screen.c b/cl_screen.c index b9bf5ab3..c485c805 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -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; diff --git a/gl_backend.c b/gl_backend.c index 70810fce..cb450bde 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -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; diff --git a/gl_backend.h b/gl_backend.h index 199e064a..72ce4322 100644 --- a/gl_backend.h +++ b/gl_backend.h @@ -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;