makepanda: Add pandagles2 to Config.prc, fall back if pandagl not built

This commit is contained in:
rdb 2021-12-06 22:25:28 +01:00
parent 396e623aba
commit 0122c07e10
2 changed files with 7 additions and 1 deletions

View File

@ -15,6 +15,7 @@
load-display pandagl
#load-display pandadx9
#load-display pandagles
#load-display pandagles2
#load-display p3tinydisplay
# These control the placement and size of the default rendering window.

View File

@ -2830,7 +2830,12 @@ if PkgSkip("GL") or GetLinkAllStatic():
configprc = configprc.replace("\nload-display pandagl", "\n#load-display pandagl")
if PkgSkip("GLES") or GetLinkAllStatic():
configprc = configprc.replace("\n#load-display pandagles", "")
configprc = configprc.replace("\n#load-display pandagles\n", "\n")
if PkgSkip("GL") and not PkgSkip("GLES2") and not GetLinkAllStatic():
configprc = configprc.replace("\n#load-display pandagles2", "\nload-display pandagles2")
elif PkgSkip("GLES2") or GetLinkAllStatic():
configprc = configprc.replace("\n#load-display pandagles2", "")
if PkgSkip("DX9") or GetLinkAllStatic():
configprc = configprc.replace("\n#load-display pandadx9", "")