git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8475
d7cf8633-e32d-0410-b094-
e92efae38249
return;
}
picname = PRVM_G_STRING(OFS_PARM0);
- polys->begin_texture = picname[0] ? Draw_CachePic (picname)->tex : r_texture_white;
+ polys->begin_texture = picname[0] ? Draw_CachePic_Flags (picname, CACHEPICFLAG_NOCLAMP)->tex : r_texture_white;
polys->begin_drawflag = (int)PRVM_G_FLOAT(OFS_PARM1);
polys->begin_vertices = 0;
polys->begin_active = true;
CACHEPICFLAG_NOTPERSISTENT = 1,
CACHEPICFLAG_QUIET = 2,
CACHEPICFLAG_NOCOMPRESSION = 4,
+ CACHEPICFLAG_NOCLAMP = 8,
}
cachepicflags_t;
flags = TEXF_ALPHA;
if (!(cachepicflags & CACHEPICFLAG_NOTPERSISTENT))
flags |= TEXF_PRECACHE;
- if (strcmp(path, "gfx/colorcontrol/ditherpattern"))
+ if (!(flags & CACHEPICFLAG_NOCLAMP))
flags |= TEXF_CLAMP;
if (!(cachepicflags & CACHEPICFLAG_NOCOMPRESSION) && gl_texturecompression_2d.integer)
flags |= TEXF_COMPRESS;
float x, c, s, t, u, v;
cachepic_t *p, *dither;
- dither = Draw_CachePic ("gfx/colorcontrol/ditherpattern");
+ dither = Draw_CachePic_Flags ("gfx/colorcontrol/ditherpattern", CACHEPICFLAG_NOCLAMP);
M_Background(320, 256);