Working with Windows also

This commit is contained in:
Vladislav Khorev committed 2025-03-01 10:14:28 +03:00
1 parent 8d8843cb11
commit fa0a369357
1 file changed
+6 -1
+6 -1
View File
@@ -29,8 +29,13 @@ namespace ZL {
VAOHolder::~VAOHolder() VAOHolder::~VAOHolder()
{ {
#ifndef EMSCRIPTEN #ifndef EMSCRIPTEN
glDeleteVertexArrays(1, &vao);
#ifdef __linux__
glDeleteVertexArrays(1, &vao);
#else
//Windows
glDeleteVertexArray(1, &vao);
#endif
#endif #endif
} }