flushes after drawing the source texture, fixes #4404

This commit is contained in:
codeanticode
2016-04-13 16:49:24 -04:00
parent 9c5579b233
commit 205b73bf89
2 changed files with 15 additions and 12 deletions

View File

@@ -149,15 +149,9 @@ class FontTexture implements PConstants {
} else if (resize) {
// Replacing old smaller texture with larger one.
// But first we must copy the contents of the older
// texture into the new one. Setting blend mode to
// REPLACE to preserve color of transparent pixels.
// texture into the new one.
Texture tex0 = textures[lastTex];
tex.pg.pushStyle();
tex.pg.blendMode(REPLACE);
tex.put(tex0);
tex.pg.popStyle();
textures[lastTex] = tex;
pg.setCache(images[lastTex], tex);