Skip to content

Commit

Permalink
Examples: Removed extension checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Jun 11, 2020
1 parent 64d4fb4 commit 152a185
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
7 changes: 0 additions & 7 deletions examples/webgl_buffergeometry_instancing_billboards.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,6 @@

renderer = new THREE.WebGLRenderer();

if ( renderer.extensions.get( 'ANGLE_instanced_arrays' ) === null ) {

document.getElementById( 'notSupported' ).style.display = '';
return false;

}

container = document.createElement( 'div' );
document.body.appendChild( container );

Expand Down
12 changes: 0 additions & 12 deletions examples/webgl_depth_texture.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
var camera, scene, renderer, controls, stats;
var target;
var postScene, postCamera, postMaterial;
var supportsExtension = true;

var params = {
format: THREE.DepthFormat,
Expand All @@ -90,15 +89,6 @@
function init() {

renderer = new THREE.WebGLRenderer();

if ( ! renderer.extensions.get( 'WEBGL_depth_texture' ) ) {

supportsExtension = false;
document.querySelector( '#error' ).style.display = 'block';
return;

}

renderer.setPixelRatio( window.devicePixelRatio );
renderer.setSize( window.innerWidth, window.innerHeight );
document.body.appendChild( renderer.domElement );
Expand Down Expand Up @@ -219,8 +209,6 @@

function animate() {

if ( ! supportsExtension ) return;

requestAnimationFrame( animate );

// render scene into target
Expand Down

0 comments on commit 152a185

Please sign in to comment.