11 lines
940 B
JavaScript
11 lines
940 B
JavaScript
shadow$provide.module$node_modules$pixi_DOT_js$lib$rendering$renderers$gl$texture$uploaders$glUploadBufferImageResource = function(global, require, module, exports) {
|
|
exports.glUploadBufferImageResource = {id:"buffer", upload(source, glTexture, gl, _webGLVersion, targetOverride, forceAllocation = !1) {
|
|
_webGLVersion = targetOverride || glTexture.target;
|
|
forceAllocation || glTexture.width !== source.width || glTexture.height !== source.height ? gl.texImage2D(_webGLVersion, 0, glTexture.internalFormat, source.width, source.height, 0, glTexture.format, glTexture.type, source.resource) : gl.texSubImage2D(_webGLVersion, 0, 0, 0, source.width, source.height, glTexture.format, glTexture.type, source.resource);
|
|
glTexture.width = source.width;
|
|
glTexture.height = source.height;
|
|
}};
|
|
};
|
|
|
|
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$rendering$renderers$gl$texture$uploaders$glUploadBufferImageResource.js.map
|