From ff2f74994e09f68ed2bf2c53fa0d96e3684ebf06 Mon Sep 17 00:00:00 2001 From: codeanticode Date: Tue, 24 Apr 2012 16:57:22 +0000 Subject: [PATCH] Removed finalize resource warning --- .../src/processing/opengl/PGraphicsOpenGL.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java b/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java index 4eae32c9a..8b17e4673 100644 --- a/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java +++ b/java/libraries/opengl/src/processing/opengl/PGraphicsOpenGL.java @@ -575,8 +575,6 @@ public class PGraphicsOpenGL extends PGraphics { GLResource res = new GLResource(id, context); if (glTextureObjects.containsKey(res)) { glTextureObjects.put(res, true); - } else { - showWarning("Trying to finalize non-existing texture"); } } @@ -645,8 +643,6 @@ public class PGraphicsOpenGL extends PGraphics { GLResource res = new GLResource(id, context); if (glVertexBuffers.containsKey(res)) { glVertexBuffers.put(res, true); - } else { - showWarning("Trying to finalize non-existing VBO"); } } @@ -715,8 +711,6 @@ public class PGraphicsOpenGL extends PGraphics { GLResource res = new GLResource(id, context); if (glFrameBuffers.containsKey(res)) { glFrameBuffers.put(res, true); - } else { - showWarning("Trying to finalize non-existing FBO"); } } @@ -785,8 +779,6 @@ public class PGraphicsOpenGL extends PGraphics { GLResource res = new GLResource(id, context); if (glRenderBuffers.containsKey(res)) { glRenderBuffers.put(res, true); - } else { - showWarning("Trying to finalize non-existing renderbuffer"); } } @@ -851,8 +843,6 @@ public class PGraphicsOpenGL extends PGraphics { GLResource res = new GLResource(id, context); if (glslPrograms.containsKey(res)) { glslPrograms.put(res, true); - } else { - showWarning("Trying to finalize non-existing glsl program"); } } @@ -916,8 +906,6 @@ public class PGraphicsOpenGL extends PGraphics { GLResource res = new GLResource(id, context); if (glslVertexShaders.containsKey(res)) { glslVertexShaders.put(res, true); - } else { - showWarning("Trying to finalize non-existing glsl vertex shader"); } } @@ -981,8 +969,6 @@ public class PGraphicsOpenGL extends PGraphics { GLResource res = new GLResource(id, context); if (glslFragmentShaders.containsKey(res)) { glslFragmentShaders.put(res, true); - } else { - showWarning("Trying to finalize non-existing glsl fragment shader"); } }