aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenanse <[email protected]>2012-11-28 23:09:55 -0600
committerRenanse <[email protected]>2012-11-28 23:09:55 -0600
commitc4cf9be8fcbd4d0787213e5d5aeb7330382ac540 (patch)
tree4b9e231ec7157977ad5a98bcee3d9a6262998bc9
parenta9da660bff567873c2b2242681e60d98b405fbf5 (diff)
Added releaseContext method.
Added removeRenderContext call to cleanup.
-rw-r--r--trunk/ardor3d-lwjgl/src/main/java/com/ardor3d/framework/lwjgl/LwjglHeadlessCanvas.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/trunk/ardor3d-lwjgl/src/main/java/com/ardor3d/framework/lwjgl/LwjglHeadlessCanvas.java b/trunk/ardor3d-lwjgl/src/main/java/com/ardor3d/framework/lwjgl/LwjglHeadlessCanvas.java
index a2d235b..26f8d78 100644
--- a/trunk/ardor3d-lwjgl/src/main/java/com/ardor3d/framework/lwjgl/LwjglHeadlessCanvas.java
+++ b/trunk/ardor3d-lwjgl/src/main/java/com/ardor3d/framework/lwjgl/LwjglHeadlessCanvas.java
@@ -208,6 +208,10 @@ public class LwjglHeadlessCanvas {
}
}
+ public void releaseContext() throws LWJGLException {
+ _buff.releaseContext();
+ }
+
public void cleanup() {
if (_fboID != 0) {
final IntBuffer id = BufferUtils.createIntBuffer(1);
@@ -232,6 +236,7 @@ public class LwjglHeadlessCanvas {
EXTFramebufferObject.glDeleteRenderbuffersEXT(id);
_colorRBID = 0;
}
+ ContextManager.removeContext(this);
}
public IntBuffer getDataBuffer() {