me
/
guix
Archived
1
0
Fork 0

gnu: imgui: Use unsigned int vertex indexes.

* gnu/packages/toolkits.scm (imgui)
[arguments]: Add the "-DImDrawIdx=unsigned int" compiler option to the build
phase.
master
Maxim Cournoyer 2023-04-01 10:47:12 -04:00
parent eb169d36e5
commit 09a20d115d
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 6 additions and 1 deletions

View File

@ -66,7 +66,12 @@
(replace 'build (replace 'build
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
;; Build main library. ;; 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") "-I" (search-input-directory inputs "include/freetype2")
"-g" "-O2" "-fPIC" "-shared" "-g" "-O2" "-fPIC" "-shared"
"-lGL" "-lSDL2" "-lglfw" "-lGL" "-lSDL2" "-lglfw"