Skip to content

Commit a0f65ae

Browse files
committed
opengl support for memory64
1 parent fab93a2 commit a0f65ae

9 files changed

+441
-3885
lines changed

emcc.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2847,10 +2847,11 @@ def get_full_import_name(name):
28472847

28482848
# check if we can address the 2GB mark and higher: either if we start at
28492849
# 2GB, or if we allow growth to either any amount or to 2GB or more.
2850-
if settings.INITIAL_MEMORY > 2 * 1024 * 1024 * 1024 or \
2851-
(settings.ALLOW_MEMORY_GROWTH and
2852-
(settings.MAXIMUM_MEMORY < 0 or
2853-
settings.MAXIMUM_MEMORY > 2 * 1024 * 1024 * 1024)):
2850+
if settings.MEMORY64 == 0 and \
2851+
(settings.INITIAL_MEMORY > 2 * 1024 * 1024 * 1024 or
2852+
(settings.ALLOW_MEMORY_GROWTH and
2853+
(settings.MAXIMUM_MEMORY < 0 or
2854+
settings.MAXIMUM_MEMORY > 2 * 1024 * 1024 * 1024))):
28542855
settings.CAN_ADDRESS_2GB = 1
28552856

28562857
settings.EMSCRIPTEN_VERSION = shared.EMSCRIPTEN_VERSION

0 commit comments

Comments
 (0)