Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL 4.6 Support #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

OpenGL 4.6 Support #11

wants to merge 2 commits into from

Conversation

mario-deluna
Copy link
Owner

@mario-deluna mario-deluna commented Mar 6, 2023

This Branch serves as a starting point for OpenGL 4.6 Support.

I initially went with 4.1 because I wanted to keep MacOS fully compatible.

Before this can be merged, some mechanisms need to be integrated to properly check for compatibility.
Also a lot of functions are not properly mapped / ported on this branch which has to be fixed before we even consider merging this to master.

@Yogarine
Copy link

Building this on Mac currently fails for me with two errors:

[...]

phpglfw_functions.c:4166:66: error: incompatible integer to pointer conversion passing 'zend_long' (aka 'long long') to parameter of type 'const void *' [-Wint-conversion]
 4166 |     glVertexAttribPointer(index, size, type, normalized, stride, offset);
      |                                                                  ^~~~~~

[...]

phpglfw_functions.c:6157:26: error: incompatible integer to pointer conversion passing 'zend_long' (aka 'long long') to parameter of type 'GLsync' (aka 'struct __GLsync *') [-Wint-conversion]
 6157 |     RETURN_BOOL(glIsSync(sync));
      |                          ^~~~

[...]

Specs:

  • M1 MacBook Pro, 16-inch, 2021
  • macOS 15.0.1
  • PHP 8.3.12

Full logs:

php-glfw_gl46-error-log.txt

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.

2 participants