Dav1dde / glad

Multi-Language Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specs.
https://glad.dav1d.de/
Other
3.73k stars 440 forks source link

Macos glad1 vbo #380

Closed SkySnows closed 2 years ago

SkySnows commented 2 years ago

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

Dav1dde commented 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.

SkySnows commented 2 years ago

To use GLAD on MacOS, you must bind VBO to VAO, while using VAO

Dav1dde commented 2 years ago

This has nothing to do with glad. This is a pure OpenGL issue. You would have this problem with any loader.

SkySnows commented 2 years ago

Thank you very much for your answer. This problem will not exist on Windows, but on MacOS.