File tree 1 file changed +2
-1
lines changed
system/include/emscripten
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -692,7 +692,8 @@ typedef struct EmscriptenWebGLContextAttributes {
692
692
693
693
/*
694
694
* Creates a new WebGL context. See http://www.khronos.org/registry/webgl/specs/latest/1.0/#2.1
695
- * The parameter 'target' specifies the DOM canvas element in which to initialize the WebGL context.
695
+ * The parameter 'target' specifies the DOM canvas element in which to initialize the WebGL context. If 0 is passed for the target,
696
+ * the element specified by Module.canvas will be used.
696
697
* On success, this function returns a strictly positive value that represents a handle to the created context.
697
698
* On failure, this function returns a negative number that can be casted to a EMSCRIPTEN_RESULT field to get an error reason
698
699
* why the context creation failed.
You can’t perform that action at this time.
0 commit comments