X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=gl_textures.c;h=47981b431f38f2214b6a262895c47ad38b518e9d;hp=bcf79232cb848409f2e60b572253ac50c299226c;hb=434efc92fc320ccdb33442b4879e40704f5326d6;hpb=fb095018cbcd11dadb81dbb53ea29deb2a14e2df diff --git a/gl_textures.c b/gl_textures.c index bcf79232..47981b43 100644 --- a/gl_textures.c +++ b/gl_textures.c @@ -749,7 +749,7 @@ static void GL_SetupTextureParameters(int flags, textype_t textype, int texturet static void R_Upload(gltexture_t *glt, const unsigned char *data, int fragx, int fragy, int fragz, int fragwidth, int fragheight, int fragdepth) { int i, mip, width, height, depth; - GLint oldbindtexnum; + GLint oldbindtexnum = 0; const unsigned char *prevbuffer; prevbuffer = data; @@ -1220,7 +1220,7 @@ rtexture_t *R_LoadTextureDDSFile(rtexturepool_t *rtexturepool, const char *filen textypeinfo_t *texinfo; int mip, mipwidth, mipheight, mipsize; unsigned int c; - GLint oldbindtexnum; + GLint oldbindtexnum = 0; const unsigned char *mippixels, *ddspixels; unsigned char *dds; fs_offset_t ddsfilesize;