From: havoc Date: Mon, 21 Mar 2005 04:17:27 +0000 (+0000) Subject: changed ActiveTexture and ClientActiveTexture to take unsigned X-Git-Tag: xonotic-v0.1.0preview~5064 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=af2e0fc692961fc3b04c6fdd49dd9931f13d73b6;p=xonotic%2Fdarkplaces.git changed ActiveTexture and ClientActiveTexture to take unsigned git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5104 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_backend.c b/gl_backend.c index d40e618e..b3c44d27 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -559,7 +559,7 @@ void GL_Backend_ResetState(void) GL_SetupTextureState(); } -void GL_ActiveTexture(int num) +void GL_ActiveTexture(unsigned int num) { if (gl_state.unit != num) { @@ -572,7 +572,7 @@ void GL_ActiveTexture(int num) } } -void GL_ClientActiveTexture(int num) +void GL_ClientActiveTexture(unsigned int num) { if (gl_state.clientunit != num) { diff --git a/gl_backend.h b/gl_backend.h index e44c64c2..6d4a8f87 100644 --- a/gl_backend.h +++ b/gl_backend.h @@ -20,8 +20,8 @@ void GL_Color(float cr, float cg, float cb, float ca); void GL_ShowTrisColor(float cr, float cg, float cb, float ca); void GL_TransformToScreen(const vec4_t in, vec4_t out); void GL_LockArrays(int first, int count); -void GL_ActiveTexture(int num); -void GL_ClientActiveTexture(int num); +void GL_ActiveTexture(unsigned int num); +void GL_ClientActiveTexture(unsigned int num); void GL_Scissor(int x, int y, int width, int height); // AK for DRAWQUEUE_SETCLIP void GL_ScissorTest(int state); // AK for DRAWQUEUE_(RE)SETCLIP void GL_Clear(int mask);