Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
locValueDict["gl.vendor"] = gl.getParameter(gl.VENDOR);
locValueDict["gl.renderer"] = gl.getParameter(gl.RENDERER);
locValueDict["gl.version"] = gl.getParameter(gl.VERSION);
this._GlExtensions = "";
var extArr = gl.getSupportedExtensions();
for (var i = 0; i < extArr.length; i++)
this._GlExtensions += extArr[i] + " ";
this._maxTextureSize = gl.getParameter(gl.MAX_TEXTURE_SIZE);
locValueDict["gl.max_texture_size"] = this._maxTextureSize;
this._maxTextureUnits = gl.getParameter(gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
locValueDict["gl.max_texture_units"] = this._maxTextureUnits;
this._supportsPVRTC = this.checkForGLExtension("GL_IMG_texture_compression_pvrtc");
locValueDict["gl.supports_PVRTC"] = this._supportsPVRTC;
this._supportsNPOT = false; //true;
locValueDict["gl.supports_NPOT"] = this._supportsNPOT;
this._supportsBGRA8888 = this.checkForGLExtension("GL_IMG_texture_format_BGRA888");
locValueDict["gl.supports_BGRA8888"] = this._supportsBGRA8888;
this._supportsDiscardFramebuffer = this.checkForGLExtension("GL_EXT_discard_framebuffer");
locValueDict["gl.supports_discard_framebuffer"] = this._supportsDiscardFramebuffer;
this._supportsShareableVAO = this.checkForGLExtension("vertex_array_object");
locValueDict["gl.supports_vertex_array_object"] = this._supportsShareableVAO;
cc.checkGLErrorDebug();
},
locValueDict["gl.vendor"] = gl.getParameter(gl.VENDOR);
locValueDict["gl.renderer"] = gl.getParameter(gl.RENDERER);
locValueDict["gl.version"] = gl.getParameter(gl.VERSION);
this._GlExtensions = "";
var extArr = gl.getSupportedExtensions();
for (var i = 0; i < extArr.length; i++)
this._GlExtensions += extArr[i] + " ";
this._maxTextureSize = gl.getParameter(gl.MAX_TEXTURE_SIZE);
locValueDict["gl.max_texture_size"] = this._maxTextureSize;
this._maxTextureUnits = gl.getParameter(gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
locValueDict["gl.max_texture_units"] = this._maxTextureUnits;
this._supportsPVRTC = this.checkForGLExtension("GL_IMG_texture_compression_pvrtc");
locValueDict["gl.supports_PVRTC"] = this._supportsPVRTC;
this._supportsNPOT = false; //true;
locValueDict["gl.supports_NPOT"] = this._supportsNPOT;
this._supportsBGRA8888 = this.checkForGLExtension("GL_IMG_texture_format_BGRA888");
locValueDict["gl.supports_BGRA8888"] = this._supportsBGRA8888;
this._supportsDiscardFramebuffer = this.checkForGLExtension("GL_EXT_discard_framebuffer");
locValueDict["gl.supports_discard_framebuffer"] = this._supportsDiscardFramebuffer;
this._supportsShareableVAO = this.checkForGLExtension("vertex_array_object");
locValueDict["gl.supports_vertex_array_object"] = this._supportsShareableVAO;
cc.checkGLErrorDebug();
},
locValueDict["gl.vendor"] = gl.getParameter(gl.VENDOR);
locValueDict["gl.renderer"] = gl.getParameter(gl.RENDERER);
locValueDict["gl.version"] = gl.getParameter(gl.VERSION);
this._GlExtensions = "";
var extArr = gl.getSupportedExtensions();
for (var i = 0; i < extArr.length; i++)
this._GlExtensions += extArr[i] + " ";
this._maxTextureSize = gl.getParameter(gl.MAX_TEXTURE_SIZE);
locValueDict["gl.max_texture_size"] = this._maxTextureSize;
this._maxTextureUnits = gl.getParameter(gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
locValueDict["gl.max_texture_units"] = this._maxTextureUnits;
this._supportsPVRTC = this.checkForGLExtension("GL_IMG_texture_compression_pvrtc");
locValueDict["gl.supports_PVRTC"] = this._supportsPVRTC;
this._supportsNPOT = false; //true;
locValueDict["gl.supports_NPOT"] = this._supportsNPOT;
this._supportsBGRA8888 = this.checkForGLExtension("GL_IMG_texture_format_BGRA888");
locValueDict["gl.supports_BGRA8888"] = this._supportsBGRA8888;
this._supportsDiscardFramebuffer = this.checkForGLExtension("GL_EXT_discard_framebuffer");
locValueDict["gl.supports_discard_framebuffer"] = this._supportsDiscardFramebuffer;
this._supportsShareableVAO = this.checkForGLExtension("vertex_array_object");
locValueDict["gl.supports_vertex_array_object"] = this._supportsShareableVAO;
cc.checkGLErrorDebug();
},
locValueDict["gl.vendor"] = gl.getParameter(gl.VENDOR);
locValueDict["gl.renderer"] = gl.getParameter(gl.RENDERER);
locValueDict["gl.version"] = gl.getParameter(gl.VERSION);
this._GlExtensions = "";
var extArr = gl.getSupportedExtensions();
for (var i = 0; i < extArr.length; i++)
this._GlExtensions += extArr[i] + " ";
this._maxTextureSize = gl.getParameter(gl.MAX_TEXTURE_SIZE);
locValueDict["gl.max_texture_size"] = this._maxTextureSize;
this._maxTextureUnits = gl.getParameter(gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
locValueDict["gl.max_texture_units"] = this._maxTextureUnits;
this._supportsPVRTC = this.checkForGLExtension("GL_IMG_texture_compression_pvrtc");
locValueDict["gl.supports_PVRTC"] = this._supportsPVRTC;
this._supportsNPOT = false; //true;
locValueDict["gl.supports_NPOT"] = this._supportsNPOT;
this._supportsBGRA8888 = this.checkForGLExtension("GL_IMG_texture_format_BGRA888");
locValueDict["gl.supports_BGRA8888"] = this._supportsBGRA8888;
this._supportsDiscardFramebuffer = this.checkForGLExtension("GL_EXT_discard_framebuffer");
locValueDict["gl.supports_discard_framebuffer"] = this._supportsDiscardFramebuffer;
this._supportsShareableVAO = this.checkForGLExtension("vertex_array_object");
locValueDict["gl.supports_vertex_array_object"] = this._supportsShareableVAO;
cc.CHECK_GL_ERROR_DEBUG();
},
locValueDict["gl.vendor"] = gl.getParameter(gl.VENDOR);
locValueDict["gl.renderer"] = gl.getParameter(gl.RENDERER);
locValueDict["gl.version"] = gl.getParameter(gl.VERSION);
this._GlExtensions = "";
var extArr = gl.getSupportedExtensions();
for (var i = 0; i < extArr.length; i++)
this._GlExtensions += extArr[i] + " ";
this._maxTextureSize = gl.getParameter(gl.MAX_TEXTURE_SIZE);
locValueDict["gl.max_texture_size"] = this._maxTextureSize;
this._maxTextureUnits = gl.getParameter(gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
locValueDict["gl.max_texture_units"] = this._maxTextureUnits;
this._supportsPVRTC = this.checkForGLExtension("GL_IMG_texture_compression_pvrtc");
locValueDict["gl.supports_PVRTC"] = this._supportsPVRTC;
this._supportsNPOT = true;
locValueDict["gl.supports_NPOT"] = this._supportsNPOT;
this._supportsBGRA8888 = this.checkForGLExtension("GL_IMG_texture_format_BGRA888");
locValueDict["gl.supports_BGRA8888"] = this._supportsBGRA8888;
this._supportsDiscardFramebuffer = this.checkForGLExtension("GL_EXT_discard_framebuffer");
locValueDict["gl.supports_discard_framebuffer"] = this._supportsDiscardFramebuffer;
this._supportsShareableVAO = this.checkForGLExtension("vertex_array_object");
locValueDict["gl.supports_vertex_array_object"] = this._supportsShareableVAO;
cc.checkGLErrorDebug();
},