diff --git a/src/java/org/lwjgl/opengl/Pbuffer.java b/src/java/org/lwjgl/opengl/Pbuffer.java index 6a6aabdb..eba7fc87 100644 --- a/src/java/org/lwjgl/opengl/Pbuffer.java +++ b/src/java/org/lwjgl/opengl/Pbuffer.java @@ -158,6 +158,15 @@ public final class Pbuffer { Sys.initialize(); } + /** + * Determine whether the Pbuffer is using the Display context. + * + * @return true of the Pbuffer is using the Display context, false if not. + */ + public boolean isUsingDisplayContext() { + return display_context != null; + } + /** * Create an instance of a Pbuffer using the Display context. The buffer is double-buffered, like the Display. *