Fix compile

This commit is contained in:
luboslenco
2025-07-21 14:41:08 +02:00
parent be44ab4fae
commit 2313ce88b1
+1 -1
View File
@@ -532,7 +532,7 @@ void gpu_texture_init_from_bytes(gpu_texture_t *texture, void *data, int width,
texture->height = height;
texture->format = format;
texture->state = GPU_TEXTURE_STATE_SHADER_RESOURCE;
target->buffer = NULL;
texture->buffer = NULL;
MTLPixelFormat mtlformat = convert_texture_format(format);
if (mtlformat == MTLPixelFormatBGRA8Unorm) {