Closed SkySnows closed 2 years ago
This has nothing to do with glad, this just means there is a bug in your code. Maybe you're missing a VAO, VAO's are (or used to be) required on OSX.
To use GLAD on MacOS, you must bind VBO to VAO, while using VAO
This has nothing to do with glad. This is a pure OpenGL issue. You would have this problem with any loader.
Thank you very much for your answer. This problem will not exist on Windows, but on MacOS.
Compat_profile GLFW_OPENGL_COMPAT_PROFILE on MAC. Compat_profile GLFW_OPENGL_FORWARD_COMPAT on ios. Compatat header and C file generated in glad URL. The triangle can be drawn on Windows, but it cannot be drawn on MAC, and error 1282 is reported