Skip to content

It looks like glVertexArrayElementBuffer() is from OpenGL 4.5 #1729

@illwieckz

Description

@illwieckz

We merged #1690 on the assumption VAO is provided by OpenGL 3.0 or by GL_ARB_vertex_array_object:

But this code also makes use of glVertexArrayElementBuffer() and it looks like glVertexArrayElementBuffer() is from OpenGL 4.5, at least it's only part of the standard since 4.5:

Also is not listed in ARB_vertex_array_object:

This results in the glVertexArrayElementBuffer pointer being null in some drivers for hardware without OpenGL 4.5, leading to an engine crash.

OpenGL 4.5 is a very high version to require. Maybe there can be an alternative implementation of this specific function when OpenGL is older than 4.5, without reverting the whole change?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions