|
1 | 1 | /* -*- mode: java; c-basic-offset: 2; indent-tabs-mode: nil -*- */ |
2 | 2 |
|
3 | 3 | /* |
4 | | - Part of the Processing project - http://processing.org |
| 4 | + Processing OpenGL (c) 2011-2015 Andres Colubri |
5 | 5 |
|
6 | | - Copyright (c) 2011-12 Ben Fry and Casey Reas |
| 6 | + Part of the Processing project - http://processing.org |
| 7 | + Copyright (c) 2001-04 Massachusetts Institute of Technology |
| 8 | + Copyright (c) 2004-12 Ben Fry and Casey Reas |
| 9 | + Copyright (c) 2012-15 The Processing Foundation |
7 | 10 |
|
8 | 11 | This library is free software; you can redistribute it and/or |
9 | 12 | modify it under the terms of the GNU Lesser General Public |
10 | | - License as published by the Free Software Foundation; either |
11 | | - version 2.1 of the License, or (at your option) any later version. |
| 13 | + License version 2.1 as published by the Free Software Foundation. |
12 | 14 |
|
13 | 15 | This library is distributed in the hope that it will be useful, |
14 | 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
19 | 21 | Public License along with this library; if not, write to the |
20 | 22 | Free Software Foundation, Inc., 59 Temple Place, Suite 330, |
21 | 23 | Boston, MA 02111-1307 USA |
22 | | -*/ |
| 24 | + */ |
23 | 25 |
|
24 | 26 | package processing.opengl; |
25 | 27 |
|
@@ -150,31 +152,6 @@ public class FrameBuffer implements PConstants { |
150 | 152 | } |
151 | 153 |
|
152 | 154 |
|
153 | | -// @Override |
154 | | -// protected void finalize() throws Throwable { |
155 | | -// try { |
156 | | -// if (!screenFb) { |
157 | | -// if (glFbo != 0) { |
158 | | -// PGraphicsOpenGL.finalizeFrameBufferObject(glFbo, context); |
159 | | -// } |
160 | | -// if (glDepth != 0) { |
161 | | -// PGraphicsOpenGL.finalizeRenderBufferObject(glDepth, context); |
162 | | -// } |
163 | | -// if (glStencil != 0) { |
164 | | -// PGraphicsOpenGL.finalizeRenderBufferObject(glStencil, context); |
165 | | -// } |
166 | | -// if (glMultisample != 0) { |
167 | | -// PGraphicsOpenGL.finalizeRenderBufferObject(glMultisample, context); |
168 | | -// } |
169 | | -// if (glDepthStencil != 0) { |
170 | | -// PGraphicsOpenGL.finalizeRenderBufferObject(glDepthStencil, context); |
171 | | -// } |
172 | | -// } |
173 | | -// } finally { |
174 | | -// super.finalize(); |
175 | | -// } |
176 | | -// } |
177 | | - |
178 | 155 | public void clear() { |
179 | 156 | pg.pushFramebuffer(); |
180 | 157 | pg.setFramebuffer(this); |
|
0 commit comments