Change to additive blending for fonts.

This commit is contained in:
emb 2015-03-03 12:58:17 -06:00
parent 2a52b66ace
commit 8f78cc0d16

View File

@ -134,6 +134,7 @@ bool Font::Initialize(std::string fontPath, int fontSize, SDL_Color color)
SDL_LockMutex(SDL::GetMutex());
Texture = SDL_CreateTextureFromSurface(SDL::GetRenderer(), atlasSurface);
SDL_SetTextureBlendMode(Texture, SDL_BLENDMODE_ADD);
SDL_FreeSurface(atlasSurface);
SDL_UnlockMutex(SDL::GetMutex());