1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Fix black backgrounds with opengles2

This commit is contained in:
Mathieu Schroeter 2018-06-11 18:18:07 +02:00
parent 33464784ed
commit 34869f1736

View File

@ -254,8 +254,9 @@ CPixmap::Cache (
return false;
}
SDL_SetTextureBlendMode (
m_SDLTextureInfo[channel].texture, SDL_BLENDMODE_BLEND);
if (channel != CHBACK)
SDL_SetTextureBlendMode (
m_SDLTextureInfo[channel].texture, SDL_BLENDMODE_BLEND);
}
SDL_SetRenderTarget (g_renderer, m_SDLTextureInfo[channel].texture);