diff --git a/src/video/stb_image.h b/src/video/stb_image.h index 977785fa77..76094f102e 100644 --- a/src/video/stb_image.h +++ b/src/video/stb_image.h @@ -895,6 +895,8 @@ static void stbi__refill_buffer(stbi__context *s); static void stbi__start_mem(stbi__context *s, stbi_uc const *buffer, int len) { s->io.read = NULL; + s->io.skip = NULL; + s->io.eof = NULL; s->read_from_callbacks = 0; s->callback_already_read = 0; s->img_buffer = s->img_buffer_original = (stbi_uc *) buffer;