|
|
@@ -1222,7 +1222,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
|
|
|
const srcFormat = _gl.RGBA;
|
|
|
const srcType = _gl.UNSIGNED_BYTE;
|
|
|
|
|
|
- _gl.texElement2D( _gl.TEXTURE_2D, level, internalFormat, srcFormat, srcType, image );
|
|
|
+ _gl.texElementImage2D( _gl.TEXTURE_2D, level, internalFormat, srcFormat, srcType, image );
|
|
|
_gl.texParameteri( _gl.TEXTURE_2D, _gl.TEXTURE_MIN_FILTER, _gl.LINEAR);
|
|
|
_gl.texParameteri( _gl.TEXTURE_2D, _gl.TEXTURE_WRAP_S, _gl.CLAMP_TO_EDGE);
|
|
|
_gl.texParameteri( _gl.TEXTURE_2D, _gl.TEXTURE_WRAP_T, _gl.CLAMP_TO_EDGE);
|