Skip to content

Conversation

ZzzhHe
Copy link

@ZzzhHe ZzzhHe commented Oct 29, 2024

Description:
This PR introduces modifications to enable macOS compatibility by ensuring compliance with OpenGL Core Profile requirements. Key updates include:

Changes Made:

(All changes are wrapped in #ifdef __APPLE__ to maintain compatibility with Windows and other platforms.)

  1. Platform-Specific Compatibility for Context Initialization:
  • Added glfwWindowHint settings to enforce an OpenGL Core Profile context on macOS
  • Ensures macOS uses the correct OpenGL version and profile.
  1. Shader Version Update for macOS:
  • Updated GLSL shader version #version 330 core to be compatible with macOS Core Profile
  1. VAO Usage Across Key OpenGL Functions:
  • Added VAO creation, binding, and management in the draw functions to ensure compatibility with macOS Core Profile:

Next Steps:

  • Plan to add Vulkan support for macOS

System Information:

  • Operating System: macOS Sequoia 15
  • System Architecture: ARM64 (Apple Silicon M2)
  • C++ Compiler: LLVM clang 19.1.2 (Homebrew)

Please review the changes and provide feedback. Looking forward to merging these updates to add proper OpenGL support for macOS!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant