Skip to content

Commit

Permalink
Make R_NOTEXTURE 256x256 pixels.
Browse files Browse the repository at this point in the history
So that sky surfaces with missing texture are drawn properly.
  • Loading branch information
skullernet committed Dec 7, 2012
1 parent 2b1aa07 commit 9903ec0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/refresh/sw/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void R_BuildGammaTable(void)
}
}

#define NTX 16
#define NTX 256

static void R_CreateNotexture(void)
{
Expand All @@ -160,9 +160,9 @@ static void R_CreateNotexture(void)

for (m = 0; m < 4; m++) {
p = (uint32_t *)ntx->pixels[m];
for (y = 0; y < (16 >> m); y++) {
for (x = 0; x < (16 >> m); x++) {
if ((y < (8 >> m)) ^ (x < (8 >> m)))
for (y = 0; y < (NTX >> m); y++) {
for (x = 0; x < (NTX >> m); x++) {
if ((x ^ y) & (1 << (3 - m)))
*p++ = U32_BLACK;
else
*p++ = U32_WHITE;
Expand Down

0 comments on commit 9903ec0

Please sign in to comment.