code: function dsTextureConfig( gl , stencil ){
    if( stencil ){
      // DEPTH_STENCIL | DEPTH24_STENCIL8 | UNSIGNED_INT_24_8_WEBGL
      return {format: 0x84F9, type : 0x84FA, internal : gl.DEPTH24_STENCIL8 };
    } 
    // DEPTH_COMPONENT | DEPTH_COMPONENT24 | UNSIGNED_INT
    return {format: 0x1902, type : 0x1405, internal : gl.DEPTH_COMPONENT24 };
  }
docs: depth texture internal format must return internal:undefined in webgl 1, so "internal" will match "format"