mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-04 11:11:04 +00:00
- sanitized walock.
Sorry, but having a globally writable pointer to every texture is just insane and makes any functional management impossible. This is merely a preparation for adding a real texture manager. That cannot be done if any code can write over the data at will. For that, it now has to make the texture writable first or create a writable empty texture.
This commit is contained in:
parent
3621aae3f0
commit
fbc22e0125
31 changed files with 185 additions and 193 deletions
|
@ -2530,17 +2530,14 @@ restart_grand:
|
|||
{
|
||||
tileUpdatePicnum(&tilenum, 0);
|
||||
|
||||
if (!waloff[tilenum])
|
||||
tileLoad(tilenum);
|
||||
|
||||
if (waloff[tilenum])
|
||||
if (tileCache(tilenum))
|
||||
{
|
||||
// daz-intz > 0 && daz-intz < k
|
||||
int32_t xtex = mulscale16(ucoefup16, tilesiz[tilenum].x);
|
||||
int32_t vcoefup16 = 65536-divscale16(daz-intz, k);
|
||||
int32_t ytex = mulscale16(vcoefup16, tilesiz[tilenum].y);
|
||||
|
||||
const char *texel = (char *)(waloff[tilenum] + tilesiz[tilenum].y*xtex + ytex);
|
||||
auto texel = (tilePtr(tilenum) + tilesiz[tilenum].y*xtex + ytex);
|
||||
if (*texel == 255)
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue