Skip to content

Add support for OpenGL VAOs on macOS#2063

Open
ACrazyTown wants to merge 2 commits into
openfl:developfrom
ACrazyTown:apple-vao
Open

Add support for OpenGL VAOs on macOS#2063
ACrazyTown wants to merge 2 commits into
openfl:developfrom
ACrazyTown:apple-vao

Conversation

@ACrazyTown
Copy link
Copy Markdown
Contributor

Lime requests a OpenGL compatibility profile when creating a window, which on macOS results in an archaic version of OpenGL 2.1. This version does not support VAOs out of box, however, Apple provides the APPLE_vertex_array_object extension which provides the same set of methods, albeit with a suffix.

This PR adds calls to these methods on macOS only, if available, so that vertex array related methods aren't just a no-op.

var vao = GL.createVertexArray();
trace(vao != null); 	      // true. false on 8.3.2

GL.bindVertexArray(vao);
trace(GL.isVertexArray(vao)); // true. false on 8.3.2
		
GL.deleteVertexArray(vao);

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