OPENGL: Fix OSD support by only updating the OSD texture in internUpdateScreen.

This actually still has the drawback that if one calls OSystem::updateScreen
from the sound thread that it might crash. Hopefully no code does this though...

svn-id: r54830
This commit is contained in:
Johannes Schickel 2010-12-08 01:53:20 +00:00
parent da2880be47
commit d184686189
2 changed files with 13 additions and 25 deletions

View file

@ -282,6 +282,7 @@ protected:
Graphics::Surface _osdSurface;
uint8 _osdAlpha;
uint32 _osdFadeStartTime;
bool _requireOSDUpdate;
enum {
kOSDFadeOutDelay = 2 * 1000,
kOSDFadeOutDuration = 500,