瀏覽代碼

makepanda: Fix build with emscripten 3.1.51

rdb 1 年之前
父節點
當前提交
f95a531fdc
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      makepanda/makepanda.py

+ 1 - 0
makepanda/makepanda.py

@@ -4881,6 +4881,7 @@ if GetTarget() != 'android' and not PkgSkip("EGL") and not PkgSkip("GLES2"):
 
 if GetTarget() == 'emscripten' and not PkgSkip("GLES2"):
   DefSymbol('GLES2', 'OPENGLES_2', '')
+  LinkFlag('GLES2', '-s GL_ENABLE_GET_PROC_ADDRESS=1')
   OPTS=['DIR:panda/src/webgldisplay', 'DIR:panda/src/glstuff', 'BUILDING:PANDAGLES2',  'GLES2', 'WEBGL']
   TargetAdd('p3webgldisplay_webgldisplay_composite1.obj', opts=OPTS, input='p3webgldisplay_composite1.cxx')
   TargetAdd('libp3webgldisplay.dll', input='p3gles2gsg_config_gles2gsg.obj')