Skip to content

OpenGL 4.6 Support#11

Open
mario-deluna wants to merge 2 commits into
masterfrom
gl46
Open

OpenGL 4.6 Support#11
mario-deluna wants to merge 2 commits into
masterfrom
gl46

Conversation

@mario-deluna
Copy link
Copy Markdown
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.

@AlwinGarside
Copy link
Copy Markdown

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

@mario-deluna
Copy link
Copy Markdown
Owner Author

Hey @Yogarine sorry, for reacting to this lately. MacOS does unfortunately not support OpenGL4.6.

This branch will only support Linux and Windows.

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