Fix issue #1353 (TestUseAfterFree causes AssertionError)

This commit is contained in:
Stephen Gold 2020-04-21 17:40:03 -07:00
parent e3161f4622
commit 15e3acbe4d

View File

@ -38,6 +38,13 @@ import com.jme3.scene.shape.Box;
import com.jme3.texture.Texture; import com.jme3.texture.Texture;
import com.jme3.util.BufferUtils; 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 { public class TestUseAfterFree extends SimpleApplication {
private float time = 0; private float time = 0;