Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
81554dac
Commit
81554dac
authored
Feb 23, 2019
by
Leon Krause
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix file preloading warning in HTML5 platform
parent
9d78274e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
detect.py
platform/javascript/detect.py
+0
-4
engine.js
platform/javascript/engine.js
+2
-1
No files found.
platform/javascript/detect.py
View file @
81554dac
...
...
@@ -129,10 +129,6 @@ def configure(env):
# us since we don't know requirements at compile-time.
env
.
Append
(
LINKFLAGS
=
[
'-s'
,
'ALLOW_MEMORY_GROWTH=1'
])
# Since we use both memory growth and MEMFS preloading,
# this avoids unnecessary copying on start-up.
env
.
Append
(
LINKFLAGS
=
[
'--no-heap-copy'
])
# This setting just makes WebGL 2 APIs available, it does NOT disable WebGL 1.
env
.
Append
(
LINKFLAGS
=
[
'-s'
,
'USE_WEBGL2=1'
])
...
...
platform/javascript/engine.js
View file @
81554dac
...
...
@@ -199,7 +199,8 @@
}
LIBS
.
FS
.
mkdirTree
(
dir
);
}
LIBS
.
FS
.
createDataFile
(
'/'
,
file
.
path
,
new
Uint8Array
(
file
.
buffer
),
true
,
true
,
true
);
// With memory growth, canOwn should be false.
LIBS
.
FS
.
createDataFile
(
file
.
path
,
null
,
new
Uint8Array
(
file
.
buffer
),
true
,
true
,
false
);
},
this
);
preloadedFiles
=
null
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment