Skip to content

Commit e57ab38

Browse files
committed
ref_gu: IMG_FLAG_PALLETED -> IMG_FLAG_PALETTED
1 parent 667a23c commit e57ab38

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ref_gu/gu_image.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ void GL_UploadTexture (image_t *image, byte *pic, int width, int height)
11381138
}
11391139

11401140
if (image->bpp == 1)
1141-
image->flags |= IMG_FLAG_PALLETED;
1141+
image->flags |= IMG_FLAG_PALETTED;
11421142

11431143
// allocate
11441144
image->data = (byte*)valloc (image->size);
@@ -1218,7 +1218,7 @@ void GL_UploadExternal (image_t *image, byte *pic, int width, int height)
12181218
ri.Sys_Error (ERR_DROP, "GL_UploadExternal: %s texture buffer is not aligned to 16-bytes!\n", image->name);
12191219

12201220
if (image->bpp == 1)
1221-
image->flags |= IMG_FLAG_PALLETED;
1221+
image->flags |= IMG_FLAG_PALETTED;
12221222

12231223
image->data = pic;
12241224
image->sl = 0;
@@ -1257,7 +1257,7 @@ qboolean GL_UploadScrap (image_t *image, byte *pic, int width, int height)
12571257
image->height = height;
12581258
image->uplwidth = BLOCK_WIDTH;
12591259
image->uplheight = BLOCK_HEIGHT;
1260-
image->flags |= IMG_FLAG_HAS_ALPHA | IMG_FLAG_SCRAP | IMG_FLAG_PALLETED;
1260+
image->flags |= IMG_FLAG_HAS_ALPHA | IMG_FLAG_SCRAP | IMG_FLAG_PALETTED;
12611261
image->size = 0;
12621262

12631263
image->sl = x;

ref_gu/gu_local.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ extern viddef_t vid;
9797
#define IMG_FLAG_HAS_ALPHA 0x00004000
9898
#define IMG_FLAG_DYNAMIC 0x00008000
9999
#define IMG_FLAG_EXTERNAL 0x00010000
100-
#define IMG_FLAG_PALLETED 0x00020000
100+
#define IMG_FLAG_PALETTED 0x00020000
101101
#define IMG_FLAG_MASK 0x0003f800
102102

103103
#define IMG_IS_IND(image) (!((image)->flags & IMG_FORMAT_MASK) || ((image)->flags & IMG_FORMAT_IND_24))

0 commit comments

Comments
 (0)