From: havoc Date: Mon, 7 Dec 2009 20:33:32 +0000 (+0000) Subject: remove unused tex1d parameters X-Git-Tag: xonotic-v0.1.0preview~1087 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=d16bba0c20b57d2d5f6e5547024c4c5a8c1cf2c4 remove unused tex1d parameters git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9559 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_backend.c b/gl_backend.c index ed8a3f6d..20182617 100644 --- a/gl_backend.c +++ b/gl_backend.c @@ -1685,7 +1685,7 @@ void R_Mesh_TexCoordPointer(unsigned int unitnum, unsigned int numcomponents, co } } -void R_Mesh_TexBindAll(unsigned int unitnum, int tex1d, int tex2d, int tex3d, int texcubemap, int texrectangle) +void R_Mesh_TexBindAll(unsigned int unitnum, int tex2d, int tex3d, int texcubemap, int texrectangle) { gltextureunit_t *unit = gl_state.units + unitnum; if (unitnum >= backendimageunits) @@ -2184,7 +2184,7 @@ void R_Mesh_TextureState(const rmeshstate_t *m) } for (i = 0;i < backendimageunits;i++) - R_Mesh_TexBindAll(i, m->tex1d[i], m->tex[i], m->tex3d[i], m->texcubemap[i], m->texrectangle[i]); + R_Mesh_TexBindAll(i, m->tex[i], m->tex3d[i], m->texcubemap[i], m->texrectangle[i]); for (i = 0;i < backendarrayunits;i++) { if (m->pointer_texcoord3f[i]) diff --git a/gl_backend.h b/gl_backend.h index b9506ef5..4a607999 100644 --- a/gl_backend.h +++ b/gl_backend.h @@ -46,7 +46,6 @@ extern cvar_t gl_printcheckerror; typedef struct rmeshstate_s { // textures - int tex1d[MAX_TEXTUREUNITS]; int tex[MAX_TEXTUREUNITS]; int tex3d[MAX_TEXTUREUNITS]; int texcubemap[MAX_TEXTUREUNITS]; @@ -99,7 +98,7 @@ void R_Mesh_ColorPointer(const float *color4f, int bufferobject, size_t bufferof // sets the texcoord array pointer for an array unit void R_Mesh_TexCoordPointer(unsigned int unitnum, unsigned int numcomponents, const float *texcoord, int bufferobject, size_t bufferoffset); // sets all textures bound to an image unit (multiple can be non-zero at once, according to OpenGL rules the highest one overrides the others) -void R_Mesh_TexBindAll(unsigned int unitnum, int tex1d, int tex2d, int tex3d, int texcubemap, int texrectangle); +void R_Mesh_TexBindAll(unsigned int unitnum, int tex2d, int tex3d, int texcubemap, int texrectangle); // sets these are like TexBindAll with only one of the texture indices non-zero // (binds one texture type and unbinds all other types) void R_Mesh_TexBind(unsigned int unitnum, int texnum);