mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
gnu: imgui: Use unsigned int vertex indexes.
* gnu/packages/toolkits.scm (imgui) [arguments]: Add the "-DImDrawIdx=unsigned int" compiler option to the build phase.
This commit is contained in:
parent
eb169d36e5
commit
09a20d115d
1 changed files with 6 additions and 1 deletions
|
@ -66,7 +66,12 @@ (define-public imgui
|
|||
(replace 'build
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
;; Build main library.
|
||||
(apply invoke #$(cc-for-target) "-I" (getcwd)
|
||||
(apply invoke #$(cc-for-target)
|
||||
;; This option is necessary at least for OpenBoardView,
|
||||
;; otherwise it would fail with the "Too many vertices in
|
||||
;; ImDrawList using 16-bit indices".
|
||||
"-DImDrawIdx=unsigned int"
|
||||
"-I" (getcwd)
|
||||
"-I" (search-input-directory inputs "include/freetype2")
|
||||
"-g" "-O2" "-fPIC" "-shared"
|
||||
"-lGL" "-lSDL2" "-lglfw"
|
||||
|
|
Loading…
Reference in a new issue