Skip to content

Commit

Permalink
WIP: Adding back JOGL implementation based on current LWJGL code
Browse files Browse the repository at this point in the history
  • Loading branch information
eduramiba committed Aug 3, 2023
1 parent b47b2f4 commit 4705b08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -687,11 +687,11 @@ private void initExtensions(GL gl) {
}

public boolean isVAOSupported(OpenGLOptions openGLOptions) {
return extensions.ARB_vertex_array_object && !openGLOptions.isDisableVAOS();
return (version.MAJOR_VERSION >= 3 || extensions.ARB_vertex_array_object) && !openGLOptions.isDisableVAOS();
}

public boolean isInstancingSupported() {
return extensions.ARB_draw_instanced && extensions.ARB_instanced_arrays;
return (version.MAJOR_VERSION >= 3 || extensions.ARB_draw_instanced) && extensions.ARB_instanced_arrays;
}

public boolean isIndirectDrawSupported() {
Expand Down

0 comments on commit 4705b08

Please sign in to comment.