Correct GL enableExtensionsByDefault check
This commit is contained in:
Родитель
8e58bcdaad
Коммит
b828122591
1
AUTHORS
1
AUTHORS
|
@ -171,4 +171,5 @@ a license to everyone to use it as detailed in LICENSE.)
|
|||
* Petr Babicka <babcca@gmail.com>
|
||||
* Akira Takahashi <faithandbrave@gmail.com>
|
||||
* Victor Costan <costan@gmail.com>
|
||||
* Pepijn Van Eeckhoudt <pepijn.vaneeckhoudt@luciad.com> (copyright owned by Luciad NV)
|
||||
|
||||
|
|
|
@ -762,7 +762,7 @@ var LibraryGL = {
|
|||
// Store the created context object so that we can access the context given a canvas without having to pass the parameters again.
|
||||
if (ctx.canvas) ctx.canvas.GLctxObject = context;
|
||||
GL.contexts[handle] = context;
|
||||
if (typeof webGLContextAttributes['webGLContextAttributes'] === 'undefined' || webGLContextAttributes.enableExtensionsByDefault) {
|
||||
if (typeof webGLContextAttributes['enableExtensionsByDefault'] === 'undefined' || webGLContextAttributes.enableExtensionsByDefault) {
|
||||
GL.initExtensions(context);
|
||||
}
|
||||
return handle;
|
||||
|
|
Загрузка…
Ссылка в новой задаче