nicetry12138 1 год назад
Родитель
Сommit
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 */
 		/* Poll for and process events */
 		glfwPollEvents();
 		glfwPollEvents();
 	}
 	}
-
+	glDeleteProgram(shader);
 	glfwTerminate();
 	glfwTerminate();
 	return 0;
 	return 0;
 }
 }