[glfw] Fix clean-up in example to use spine-cpp-lite APIs.

This commit is contained in:
Mario Zechner 2025-06-02 15:54:30 +02:00
parent b0890856cd
commit 0a349d7914
2 changed files with 5 additions and 3 deletions

View File

@ -2,6 +2,8 @@
The spine-glfw runtime provides basic functionality to load and manipulate [spine](http://esotericsoftware.com) skeletal animation data using C or C++ and render them via [GLFW](https://www.glfw.org/) and [glbinding](https://github.com/cginternals/glbinding). The spine-glfw runtime provides basic functionality to load and manipulate [spine](http://esotericsoftware.com) skeletal animation data using C or C++ and render them via [GLFW](https://www.glfw.org/) and [glbinding](https://github.com/cginternals/glbinding).
# See the [spine-glfw documentation](http://esotericsoftware.com/spine-glfw) for in-depth information
## Licensing ## Licensing
You are welcome to evaluate the Spine Runtimes and the examples we provide in this repository free of charge. You are welcome to evaluate the Spine Runtimes and the examples we provide in this repository free of charge.
@ -16,4 +18,4 @@ For the official legal terms governing the Spine Runtimes, please read the [Spin
spine-cpp works with data exported from spine 4.2.xx. spine-cpp works with data exported from spine 4.2.xx.
spine-cpp supports all spine features, except two color tinting. spine-glfw supports all spine features.

View File

@ -148,8 +148,8 @@ int main() {
// Dispose everything // Dispose everything
renderer_dispose(renderer); renderer_dispose(renderer);
// delete skeletonData; spine_skeleton_data_dispose(skeleton_data);
delete atlas; spine_atlas_dispose(atlas);
// Kill the window and GLFW // Kill the window and GLFW
glfwTerminate(); glfwTerminate();