瀏覽代碼

feat: 结束后删除 program

nicetry12138 1 年之前
父節點
當前提交
5b37cc5756
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      图形学/OpenGL学习/src/OpenGLStudy/OpenGLStudy/src/Application.cpp

+ 1 - 1
图形学/OpenGL学习/src/OpenGLStudy/OpenGLStudy/src/Application.cpp

@@ -158,7 +158,7 @@ int main(void)
 		/* Poll for and process events */
 		glfwPollEvents();
 	}
-
+	glDeleteProgram(shader);
 	glfwTerminate();
 	return 0;
 }