aboutsummaryrefslogtreecommitdiff
path: root/src/library_sdl.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-05-12 17:59:04 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-05-12 17:59:04 -0700
commitc4a559e14fac206aa42d112aee7eb62af4e5df9c (patch)
tree7cb29991bf254526df2e65a72ebad13ebbd94162 /src/library_sdl.js
parent4ae90dc790fa001008953f7bf062c07a58192dcb (diff)
glGetString
Diffstat (limited to 'src/library_sdl.js')
-rw-r--r--src/library_sdl.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js
index 525a04d2..310ff68c 100644
--- a/src/library_sdl.js
+++ b/src/library_sdl.js
@@ -1,5 +1,5 @@
// To use emscripten's SDL library here, you need to define
-// Module.canvas and Module.context.
+// Module.canvas and at least one of Module.context2D, Module.contextGL.
mergeInto(Library, {
SDL_INFO: {
@@ -40,7 +40,7 @@ mergeInto(Library, {
width: width,
height: height,
canvas: Module.canvas,
- context: Module.context,
+ context: Module.context2D,
surf: surf,
buffer: _malloc(width*height*4)
};