mirror of
https://github.com/guezoloic/LearnOpenGL.git
synced 2026-01-25 00:34:15 +00:00
chore(README): add cleanup section
This commit is contained in:
@@ -290,6 +290,12 @@ int main()
|
||||
> Update viewport => Clear screen => Use shader => Draw geometry => Poll events => Swap buffers => Check errors.
|
||||
|
||||
4. cleanup
|
||||
|
||||
```cpp
|
||||
// ========== Destroy window and terminate GLFW ==========
|
||||
glfwDestroyWindow(window);
|
||||
glfwTerminate();
|
||||
```
|
||||
|
||||
## Acknowledge
|
||||
|
||||
|
||||
Reference in New Issue
Block a user