]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - clvm_cmds.c
cl_readpicture_force: force the low quality jpeg image to be used even if the image...
[xonotic/darkplaces.git] / clvm_cmds.c
index cf2ddba271b967c77c5455bd7d2dec8178fe6355..5ed6a046fdd3ed9e621feafa9e41d16476d6b6cd 100644 (file)
@@ -1311,6 +1311,7 @@ static void VM_CL_ReadFloat (void)
 }
 
 //#501 string() readpicture (DP_CSQC_READWRITEPICTURE)
+extern cvar_t cl_readpicture_force;
 static void VM_CL_ReadPicture (void)
 {
        const char *name;
@@ -1335,7 +1336,7 @@ static void VM_CL_ReadPicture (void)
        {
                if(pic->tex == r_texture_notexture)
                        pic->tex = NULL; // don't overwrite the notexture by Draw_NewPic
-               if(pic->tex)
+               if(pic->tex && !cl_readpicture_force.integer)
                {
                        // texture found and loaded
                        // skip over the jpeg as we don't need it