php-glfw icon indicating copy to clipboard operation
php-glfw copied to clipboard

OpenGL 4.6 Support

Open mario-deluna opened this issue 3 years ago • 2 comments

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.

mario-deluna avatar Mar 06 '23 19:03 mario-deluna

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

AlwinGarside avatar Oct 24 '24 11:10 AlwinGarside

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

This branch will only support Linux and Windows.

mario-deluna avatar Nov 05 '24 10:11 mario-deluna