]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_textures.c
created new MSVC2008 project files and solution from scratch
[xonotic/darkplaces.git] / gl_textures.c
index bcf79232cb848409f2e60b572253ac50c299226c..47981b431f38f2214b6a262895c47ad38b518e9d 100644 (file)
@@ -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;