Don't apply the shared palette if it hasn't been specified yet. Fixes #34

This commit is contained in:
Luke Benstead 2019-03-04 08:42:24 +00:00
parent 11bb588279
commit efa63ebff2

View File

@ -36,6 +36,13 @@ void _glApplyColorTable() {
if(_glIsSharedTexturePaletteEnabled()) {
src = SHARED_PALETTE;
assert(src);
/* Don't apply a palette if we haven't uploaded one yet */
if(!src->data) {
return;
}
} else {
TextureObject* active = _glGetBoundTexture();