Don't apply the shared palette if it hasn't been specified yet. Fixes #34
This commit is contained in:
parent
11bb588279
commit
efa63ebff2
|
@ -36,6 +36,13 @@ void _glApplyColorTable() {
|
||||||
|
|
||||||
if(_glIsSharedTexturePaletteEnabled()) {
|
if(_glIsSharedTexturePaletteEnabled()) {
|
||||||
src = SHARED_PALETTE;
|
src = SHARED_PALETTE;
|
||||||
|
|
||||||
|
assert(src);
|
||||||
|
|
||||||
|
/* Don't apply a palette if we haven't uploaded one yet */
|
||||||
|
if(!src->data) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
TextureObject* active = _glGetBoundTexture();
|
TextureObject* active = _glGetBoundTexture();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user