low-WeakReference diet

This commit is contained in:
Jakub Valtar
2015-09-25 23:58:10 -04:00
parent fd40e11180
commit c61bc0072f
6 changed files with 245 additions and 403 deletions

View File

@@ -155,13 +155,10 @@ class FontTexture implements PConstants {
// REPLACE to preserve color of transparent pixels.
Texture tex0 = textures[currentTex];
PGraphicsOpenGL g = tex.pg.get();
if (g != null) {
g.pushStyle();
g.blendMode(REPLACE);
tex.put(tex0);
g.popStyle();
}
tex.pg.pushStyle();
tex.pg.blendMode(REPLACE);
tex.put(tex0);
tex.pg.popStyle();
textures[currentTex] = tex;