aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/library_glfw.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/library_glfw.js b/src/library_glfw.js
index 5e76071f..b0519e39 100644
--- a/src/library_glfw.js
+++ b/src/library_glfw.js
@@ -354,7 +354,10 @@ var LibraryGLFW = {
throw "Invalid glfwOpenWindow mode.";
}
- Module.ctx = Browser.createContext(Module['canvas'], true, true);
+ var contextAttributes = {
+ antialias: (GLFW.params[0x00020013] > 1) //GLFW_FSAA_SAMPLES
+ }
+ Module.ctx = Browser.createContext(Module['canvas'], true, true, contextAttributes);
return 1; //GL_TRUE
},