} catch (Exception e) { e.printStackTrace(); } }
} catch( Exception e ) { LoggingSystem.getLogger().log( Level.WARNING, "Failed to initialize created Pbuffer.", e ); isSupported = false; return; } }
    private void initPbuffer() {        if (!isSupported) {            return;        }        try {            pbuffer = new Pbuffer(pBufferWidth, pBufferHeight, new PixelFormat(                    bpp, alpha, depth, stencil, samples), texture, null);        } catch (Exception e) {            LoggingSystem.getLogger().throwing(this.getClass().toString(),                    "initPbuffer()", e);            if (texture != null && useDirectRender) {                LoggingSystem                        .getLogger()                        .log(                                Level.WARNING,                                "LWJGL reports this card supports Render to Texture, but fails to enact it.  Please report this to the LWJGL team.");                LoggingSystem.getLogger().log(Level.WARNING,                        "Attempting to fall back to Copy Texture.");                texture = null;                useDirectRender = false;                initPbuffer();                return;            }                        LoggingSystem.getLogger().log(Level.WARNING,                    "Failed to create Pbuffer.", e);            isSupported = false;            return;                    }        try {            activate();            pBufferWidth = pbuffer.getWidth();            pBufferHeight = pbuffer.getHeight();            GL11.glClearColor(backgroundColor.r, backgroundColor.g,                    backgroundColor.b, backgroundColor.a);            if (camera == null)                initCamera();            camera.update();            deactivate();        } catch (Exception e) {            e.printStackTrace();        }    }