Merge pull request #3237 from philippwiesemann/fix-gl-implicit-global
Fix glGetString() and glewIsSupported() implicitly creating global variables
This commit is contained in:
Коммит
cd601d76b8
|
@ -952,7 +952,7 @@ var LibraryGL = {
|
|||
case 0x1F03 /* GL_EXTENSIONS */:
|
||||
var exts = GLctx.getSupportedExtensions();
|
||||
var gl_exts = [];
|
||||
for (i in exts) {
|
||||
for (var i in exts) {
|
||||
gl_exts.push(exts[i]);
|
||||
gl_exts.push("GL_" + exts[i]);
|
||||
}
|
||||
|
|
|
@ -110,7 +110,7 @@ var LibraryGLEW = {
|
|||
|
||||
glewIsSupported: function(name) {
|
||||
var exts = Pointer_stringify(name).split(' ');
|
||||
for (i in exts) {
|
||||
for (var i in exts) {
|
||||
if (!GLEW.extensionIsSupported(exts[i]))
|
||||
return 0;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче