mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Revert "Reload the textures when the window is exposed"
This reverts commit a505cdd117e60ecc3be5d912255441e3d5e1f0e6. It doesn't fix the Direct3D lost of textures.
This commit is contained in:
parent
599497eed3
commit
d8f144164f
@ -346,15 +346,9 @@ HandleEvent (const SDL_Event & event)
|
||||
{
|
||||
#ifndef DEBUG
|
||||
Point totalDim, iconDim;
|
||||
#endif /* !DEBUG */
|
||||
|
||||
switch (event.window.event)
|
||||
{
|
||||
case SDL_WINDOWEVENT_EXPOSED:
|
||||
g_pPixmap->ReloadTargetTextures ();
|
||||
break;
|
||||
|
||||
#ifndef DEBUG
|
||||
case SDL_WINDOWEVENT_FOCUS_GAINED:
|
||||
g_pause = false;
|
||||
|
||||
@ -385,8 +379,8 @@ HandleEvent (const SDL_Event & event)
|
||||
if (g_pMovie)
|
||||
g_pMovie->Pause ();
|
||||
return;
|
||||
#endif /* !DEBUG */
|
||||
}
|
||||
#endif /* !DEBUG */
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user