mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Retain/release OpenGL context in dipose()
This commit is contained in:
@@ -703,7 +703,9 @@ public class PGraphicsOpenGL2 extends PGraphics {
|
||||
|
||||
public void dispose() { // PGraphics
|
||||
super.dispose();
|
||||
deleteAllGLResources();
|
||||
detainContext();
|
||||
deleteAllGLResources();
|
||||
releaseContext();
|
||||
GLProfile.shutdown();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user