summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2023-02-12 01:10:54 +0100
committerRay <[email protected]>2023-02-12 01:10:54 +0100
commit4647441ad81848334ff2827015a9e337a6a0393a (patch)
treeee74a87ca98726cda987b509ff5ab9ce9d04db8f /src
parent4ae0a416f44195317d6b20af5b357c88c294faf1 (diff)
downloadraylib-4647441ad81848334ff2827015a9e337a6a0393a.tar.gz
raylib-4647441ad81848334ff2827015a9e337a6a0393a.zip
Update rl_gputex.h
Diffstat (limited to 'src')
-rw-r--r--src/external/rl_gputex.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/external/rl_gputex.h b/src/external/rl_gputex.h
index 6d2e97b2..c20bdc67 100644
--- a/src/external/rl_gputex.h
+++ b/src/external/rl_gputex.h
@@ -477,10 +477,10 @@ int rl_save_ktx(const char *file_name, void *data, int width, int height, int fo
// Calculate file data_size required
int data_size = sizeof(ktx_header);
- for (int i = 0, width = width, height = height; i < mipmaps; i++)
+ for (int i = 0, w = width, h = height; i < mipmaps; i++)
{
- data_size += get_pixel_data_size(width, height, format);
- width /= 2; height /= 2;
+ data_size += get_pixel_data_size(w, h, format);
+ w /= 2; h /= 2;
}
unsigned char *file_data = RL_CALLOC(data_size, 1);