diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-04-01 10:47:12 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-04-01 17:28:59 -0400 |
commit | 09a20d115d89c7c3ff964f41199f6f80e0631b49 (patch) | |
tree | 8bcbe51c3ab654fa71b5a75783e8416d878c742a /gnu/packages/toolkits.scm | |
parent | eb169d36e5c8f3c15b7716310c76829451a71fcd (diff) | |
download | guix-09a20d115d89c7c3ff964f41199f6f80e0631b49.tar guix-09a20d115d89c7c3ff964f41199f6f80e0631b49.tar.gz |
gnu: imgui: Use unsigned int vertex indexes.
* gnu/packages/toolkits.scm (imgui)
[arguments]: Add the "-DImDrawIdx=unsigned int" compiler option to the build
phase.
Diffstat (limited to 'gnu/packages/toolkits.scm')
-rw-r--r-- | gnu/packages/toolkits.scm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/packages/toolkits.scm b/gnu/packages/toolkits.scm index 3030e3aa49..82b9490e62 100644 --- a/gnu/packages/toolkits.scm +++ b/gnu/packages/toolkits.scm @@ -66,7 +66,12 @@ (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" |