public void cleanup() { ContextManager.removeContext(_pbuffer); _pbuffer.destroy(); }
public void setMultipleTargets(final boolean force) { if (force) { logger.fine("Copy Texture Pbuffer used!"); _useDirectRender = false; _texture = null; if (_pbuffer != null) { try { giveBackContext(); } catch (final LWJGLException ex) { } ContextManager.removeContext(_pbuffer); } } else { if ((Pbuffer.getCapabilities() & Pbuffer.RENDER_TEXTURE_SUPPORTED) != 0) { logger.fine("Render to Texture Pbuffer supported!"); if (_texture == null) { logger.fine("No RenderTexture used in init, falling back to Copy Texture PBuffer."); _useDirectRender = false; } else { _useDirectRender = true; } } else { logger.fine("Copy Texture Pbuffer supported!"); _texture = null; } } } }
public void cleanup() { ContextManager.removeContext(_offscreenDrawable.getContext()); _offscreenDrawable.destroy(); }
public void setMultipleTargets(final boolean force) { if (force) { logger.fine("Copy Texture Pbuffer used!"); _useDirectRender = false; if (_offscreenDrawable != null) { giveBackContext(); ContextManager.removeContext(_offscreenDrawable.getContext()); } } else { // XXX: Is this WGL specific query right? if (GLContext.getCurrentGL().isExtensionAvailable("WGL_ARB_render_texture")) { logger.fine("Render to Texture Pbuffer supported!"); _useDirectRender = true; } else { logger.fine("Copy Texture Pbuffer supported!"); } } } }
public void cleanup() { if (_fboID != 0) { final IntBuffer id = BufferUtils.createIntBuffer(1); id.put(_fboID); id.rewind(); EXTFramebufferObject.glDeleteFramebuffersEXT(id); _fboID = 0; } if (_depthRBID != 0) { final IntBuffer id = BufferUtils.createIntBuffer(1); id.put(_depthRBID); id.rewind(); EXTFramebufferObject.glDeleteRenderbuffersEXT(id); _depthRBID = 0; } if (_colorRBID != 0) { final IntBuffer id = BufferUtils.createIntBuffer(1); id.put(_colorRBID); id.rewind(); EXTFramebufferObject.glDeleteRenderbuffersEXT(id); _colorRBID = 0; } ContextManager.removeContext(this); }
if (_pbuffer != null) { giveBackContext(); ContextManager.removeContext(_pbuffer);
_offscreenDrawable.destroy(); giveBackContext(); ContextManager.removeContext(_offscreenDrawable.getContext());