diff options
| author | Anthony Carbajal <[email protected]> | 2024-06-22 12:15:21 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-06-22 19:15:21 +0200 |
| commit | 0d59235adef78ca11e1d6940521815b3b0786286 (patch) | |
| tree | 010ddcbfdd3e763dd566720aa401328053d80961 /src | |
| parent | e7acdd12d8b02617728f11720725ca989fe2390b (diff) | |
| download | raylib-0d59235adef78ca11e1d6940521815b3b0786286.tar.gz raylib-0d59235adef78ca11e1d6940521815b3b0786286.zip | |
add warning log multiple of 4 (#4080)
Diffstat (limited to 'src')
| -rw-r--r-- | src/external/rl_gputex.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/external/rl_gputex.h b/src/external/rl_gputex.h index c5773055..6b26d1c8 100644 --- a/src/external/rl_gputex.h +++ b/src/external/rl_gputex.h @@ -171,6 +171,10 @@ void *rl_load_dds_from_memory(const unsigned char *file_data, unsigned int file_ *width = header->width; *height = header->height; + + if (*width % 4 != 0) LOG("WARNING: IMAGE: DDS file width must be multiple of 4. Image will not display correctly"); + if (*height % 4 != 0) LOG("WARNING: IMAGE: DDS file height must be multiple of 4. Image will not display correctly"); + image_pixel_size = header->width*header->height; if (header->mipmap_count == 0) *mips = 1; // Parameter not used |
