浏览代码

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

Mario Zechner 1 月之前
父节点
当前提交
0a349d7914
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 3 1
      spine-glfw/README.md
  2. 2 2
      spine-glfw/example/main-cpp-lite.cpp

+ 3 - 1
spine-glfw/README.md

@@ -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).
 
+# See the [spine-glfw documentation](http://esotericsoftware.com/spine-glfw) for in-depth information
+
 ## Licensing
 
 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 supports all spine features, except two color tinting.
+spine-glfw supports all spine features.

+ 2 - 2
spine-glfw/example/main-cpp-lite.cpp

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