Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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();
},
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();
},
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();
},
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();
},
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();
},