From 15e3acbe4dae94ca8491e89d2da0c9259446c10f Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Tue, 21 Apr 2020 17:40:03 -0700 Subject: [PATCH] Fix issue #1353 (TestUseAfterFree causes AssertionError) --- .../src/main/java/jme3test/app/TestUseAfterFree.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jme3-examples/src/main/java/jme3test/app/TestUseAfterFree.java b/jme3-examples/src/main/java/jme3test/app/TestUseAfterFree.java index 60129efca..b241d7808 100644 --- a/jme3-examples/src/main/java/jme3test/app/TestUseAfterFree.java +++ b/jme3-examples/src/main/java/jme3test/app/TestUseAfterFree.java @@ -38,6 +38,13 @@ import com.jme3.scene.shape.Box; import com.jme3.texture.Texture; import com.jme3.util.BufferUtils; +/** + * Demonstrate what happens if you use a deleted texture with OpenGL. + * + * If assertions are enabled, an AssertionError is thrown NativeObjectManager. + * + * @author Kirill Vainer + */ public class TestUseAfterFree extends SimpleApplication { private float time = 0;