diff --git a/src/twn_textures.c b/src/twn_textures.c index f4838ac..d6558d4 100644 --- a/src/twn_textures.c +++ b/src/twn_textures.c @@ -573,7 +573,7 @@ void textures_bind_repeating(const TextureCache *cache, TextureKey key) { upload_gpu_texture(repeating_texture, texture.data->pixels, - 4, + texture.data->format->BytesPerPixel, texture.data->w, texture.data->h);