提交 41ced7d5 编写于 作者: M Mr.doob

WebGLRenderer: Explicit checks for extensions.

上级 60032480
......@@ -6469,34 +6469,34 @@ THREE.WebGLRenderer = function ( parameters ) {
_glExtensionCompressedTextureS3TC = _gl.getExtension( 'WEBGL_compressed_texture_s3tc' ) || _gl.getExtension( 'MOZ_WEBGL_compressed_texture_s3tc' ) || _gl.getExtension( 'WEBKIT_WEBGL_compressed_texture_s3tc' );
_glExtensionElementIndexUint = _gl.getExtension( 'OES_element_index_uint' )
_glExtensionElementIndexUint = _gl.getExtension( 'OES_element_index_uint' );
if ( ! _glExtensionTextureFloat ) {
if ( _glExtensionTextureFloat === null ) {
console.log( 'THREE.WebGLRenderer: Float textures not supported.' );
}
if ( ! _glExtensionStandardDerivatives ) {
if ( _glExtensionStandardDerivatives === null ) {
console.log( 'THREE.WebGLRenderer: Standard derivatives not supported.' );
}
if ( ! _glExtensionTextureFilterAnisotropic ) {
if ( _glExtensionTextureFilterAnisotropic === null ) {
console.log( 'THREE.WebGLRenderer: Anisotropic texture filtering not supported.' );
}
if ( ! _glExtensionCompressedTextureS3TC ) {
if ( _glExtensionCompressedTextureS3TC === null ) {
console.log( 'THREE.WebGLRenderer: S3TC compressed textures not supported.' );
}
if ( ! _glExtensionElementIndexUint ) {
if ( _glExtensionElementIndexUint === null ) {
console.log( 'THREE.WebGLRenderer: elementindex as unsigned integer not supported.' );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册