OPENGL: Properly setup full game palette on video mode change if required.

This commit is contained in:
Johannes Schickel 2014-02-11 11:07:38 +01:00
parent 1f4638fe82
commit 16898486fa

View file

@ -272,7 +272,7 @@ OSystem::TransactionError OpenGLGraphicsManager::endGFXTransaction() {
#endif
assert(_gameScreen);
if (_gameScreen->hasPalette()) {
_gameScreen->setPalette(0, 255, _gamePalette);
_gameScreen->setPalette(0, 256, _gamePalette);
}
_gameScreen->allocate(_currentState.gameWidth, _currentState.gameHeight);