|
@@ -182,6 +182,8 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
var _glExtensionStandardDerivatives;
|
|
|
var _glExtensionTextureFilterAnisotropic;
|
|
|
var _glExtensionCompressedTextureS3TC;
|
|
|
+ var _glExtensionElementIndexUint;
|
|
|
+
|
|
|
|
|
|
initGL();
|
|
|
|
|
@@ -6475,6 +6477,9 @@ 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' )
|
|
|
+
|
|
|
+
|
|
|
if ( ! _glExtensionTextureFloat ) {
|
|
|
|
|
|
console.log( 'THREE.WebGLRenderer: Float textures not supported.' );
|
|
@@ -6499,6 +6504,12 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ if ( ! _glExtensionElementIndexUint ) {
|
|
|
+
|
|
|
+ console.log( 'THREE.WebGLRenderer: elementindex as unsigned integer not supported.' );
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
if ( _gl.getShaderPrecisionFormat === undefined ) {
|
|
|
|
|
|
_gl.getShaderPrecisionFormat = function() {
|