aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library_sdl.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js
index a1fb871f..11051dd4 100644
--- a/src/library_sdl.js
+++ b/src/library_sdl.js
@@ -1705,6 +1705,18 @@ var LibrarySDL = {
SDL_GL_SwapBuffers: function() {},
+ // SDL 2
+
+ SDL_GL_ExtensionSupported: function(extension) {
+ return Module.ctx.getExtension(extension);
+ },
+
+ SDL_ClearError: function() {},
+
+ SDL_getenv: function(variable) {
+ return "";
+ },
+
// TODO
SDL_SetGamma: function(r, g, b) {