Skip to content

Commit

Permalink
extended RuntimeConfig & version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldsteinlechner committed Dec 19, 2023
1 parent d641e6f commit a926cde
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 5.4.10-prerelease0003
- [GL] added flag to disable multidraw (experimental)

### 5.4.10-prerelease0003
- [FontResolve] fixed null family name failure

Expand Down
2 changes: 2 additions & 0 deletions src/Aardvark.Rendering.GL/Core/Config.fs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ module RuntimeConfig =
/// </summary>
let mutable AllowConcurrentResourceAccess = false

let mutable AllowMultiDrawIndirect = false


/// Reporting modes for OpenGL errors.
type ErrorFlagCheck =
Expand Down
12 changes: 10 additions & 2 deletions src/Aardvark.Rendering.GL/Instructions/OpenGL.fs
Original file line number Diff line number Diff line change
Expand Up @@ -665,12 +665,20 @@ module OpenGl =
/// <summary>
/// https://www.opengl.org/sdk/docs/man/html/glMultiDrawArraysIndirect.xhtml
/// </summary>
let MultiDrawArraysIndirect = getProcAddress "glMultiDrawArraysIndirect"
let MultiDrawArraysIndirect =
if RuntimeConfig.AllowMultiDrawIndirect then
getProcAddress "glMultiDrawArraysIndirect"
else
0n

/// <summary>
/// https://www.opengl.org/sdk/docs/man/html/glMultiDrawElementsIndirect.xhtml
/// </summary>
let MultiDrawElementsIndirect = getProcAddress "glMultiDrawElementsIndirect"
let MultiDrawElementsIndirect =
if RuntimeConfig.AllowMultiDrawIndirect then
getProcAddress "glMultiDrawElementsIndirect"
else
0n


/// <summary>
Expand Down

0 comments on commit a926cde

Please sign in to comment.