Correctly initialize the shared palette. Fixes #34
This commit is contained in:
parent
efa63ebff2
commit
7c0a123aac
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user