implementing new gl resource disposal method based on WeakReferences

This commit is contained in:
codeanticode
2015-06-23 16:49:14 -04:00
parent 17e0f31c2f
commit 48e136bb79
6 changed files with 1144 additions and 710 deletions

View File

@@ -264,9 +264,10 @@ class FontTexture implements PConstants {
}
if (outdated) {
for (int i = 0; i < textures.length; i++) {
PGraphicsOpenGL.removeTextureObject(textures[i].glName,
textures[i].context);
textures[i].glName = 0;
textures[i].dispose();
// PGraphicsOpenGL.removeTextureObject(textures[i].glName,
// textures[i].context);
// textures[i].glName = 0;
}
}
return outdated;