mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 10:00:42 +01:00
implementing new gl resource disposal method based on WeakReferences
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user