Skip to content

Commit

Permalink
[OpenGL] Better extension handling for draw_elements_base_vertex.
Browse files Browse the repository at this point in the history
  • Loading branch information
mellinoe committed Apr 21, 2018
1 parent 24713d2 commit f23e6c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Veldrid/OpenGL/OpenGLExtensions.cs
Expand Up @@ -34,11 +34,13 @@ public OpenGLExtensions(HashSet<string> extensions, GraphicsBackend backend, int
ComputeShaders = IsExtensionSupported("GL_ARB_compute_shader") || GLESVersion(3, 1);

ARB_ViewportArray = IsExtensionSupported("GL_ARB_viewport_array") || GLVersion(4, 1);
TessellationShader = IsExtensionSupported("GL_ARB_tessellation_shader") || GLVersion( 4, 0)
TessellationShader = IsExtensionSupported("GL_ARB_tessellation_shader") || GLVersion(4, 0)
|| IsExtensionSupported("GL_OES_tessellation_shader");
GeometryShader = IsExtensionSupported("GL_ARB_geometry_shader4") || GLVersion(3, 2)
|| IsExtensionSupported("OES_geometry_shader");
DrawElementsBaseVertex = GLVersion(3, 2) || IsExtensionSupported("GL_OES_draw_elements_base_vertex");
DrawElementsBaseVertex = GLVersion(3, 2)
|| IsExtensionSupported("GL_ARB_draw_elements_base_vertex")
|| IsExtensionSupported("GL_OES_draw_elements_base_vertex");
IndependentBlend = GLVersion(4, 0) || GLESVersion(3, 2);
}

Expand Down

0 comments on commit f23e6c5

Please sign in to comment.