Correctly initialize the shared palette. Fixes #34

This commit is contained in:
Luke Benstead 2019-03-04 08:44:19 +00:00
parent efa63ebff2
commit 7c0a123aac

View File

@ -154,6 +154,9 @@ GLubyte _glInitTextures() {
named_array_reserve(&TEXTURE_OBJECTS, 0);
SHARED_PALETTE = (TexturePalette*) malloc(sizeof(TexturePalette));
SHARED_PALETTE->data = NULL;
SHARED_PALETTE->format = 0;
SHARED_PALETTE->width = 0;
return 1;
}