twn_textures.c: fix repeated bind to work over varying channel count

This commit is contained in:
veclavtalica 2025-01-14 23:47:59 +03:00
parent ea0af5159f
commit f0ad9b9a8a

View File

@ -573,7 +573,7 @@ void textures_bind_repeating(const TextureCache *cache, TextureKey key) {
upload_gpu_texture(repeating_texture, upload_gpu_texture(repeating_texture,
texture.data->pixels, texture.data->pixels,
4, texture.data->format->BytesPerPixel,
texture.data->w, texture.data->w,
texture.data->h); texture.data->h);