Skip to content

Commit

Permalink
opengl support for memory64
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippMuigg committed Mar 17, 2023
1 parent fab93a2 commit 4111e3f
Show file tree
Hide file tree
Showing 9 changed files with 440 additions and 3,884 deletions.
7 changes: 4 additions & 3 deletions emcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -2847,10 +2847,11 @@ def get_full_import_name(name):

# check if we can address the 2GB mark and higher: either if we start at
# 2GB, or if we allow growth to either any amount or to 2GB or more.
if settings.INITIAL_MEMORY > 2 * 1024 * 1024 * 1024 or \
(settings.ALLOW_MEMORY_GROWTH and
if settings.MEMORY64 == 0 and \
(settings.INITIAL_MEMORY > 2 * 1024 * 1024 * 1024 or
(settings.ALLOW_MEMORY_GROWTH and
(settings.MAXIMUM_MEMORY < 0 or
settings.MAXIMUM_MEMORY > 2 * 1024 * 1024 * 1024)):
settings.MAXIMUM_MEMORY > 2 * 1024 * 1024 * 1024))):
settings.CAN_ADDRESS_2GB = 1

settings.EMSCRIPTEN_VERSION = shared.EMSCRIPTEN_VERSION
Expand Down
Loading

0 comments on commit 4111e3f

Please sign in to comment.