tileRenderer.trPerspective(drawable.viewField, (float) imageWidth / (float) imageHeight, drawable.nearDistance, drawable.farDistance);
//Get gl
//GLContext oldContext = GLContext.getCurrent();
GLContext context = pbuffer.getContext();
if (context.makeCurrent() == GLContext.CONTEXT_NOT_CURRENT) {
throw new RuntimeException("Error making pbuffer's context current");
}
System.out.println("Disabling snapshot");