mirror of
https://github.com/panda3d/panda3d.git
synced 2026-01-18 05:19:51 -06:00
makepanda: Add pandagles2 to Config.prc, fall back if pandagl not built
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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", "")
|
||||
|
||||
Reference in New Issue
Block a user