@kitware/vtk.js 27.2.0 → 27.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -272,7 +272,7 @@ function extend(publicAPI, model) {
|
|
|
272
272
|
|
|
273
273
|
macro.obj(publicAPI, model);
|
|
274
274
|
macro.algo(publicAPI, model, 6, 0);
|
|
275
|
-
macro.get(publicAPI, model, ['canvas', 'image', 'jsImageData', 'imageLoaded']);
|
|
275
|
+
macro.get(publicAPI, model, ['canvas', 'image', 'jsImageData', 'imageLoaded', 'resizable']);
|
|
276
276
|
macro.setGet(publicAPI, model, ['repeat', 'edgeClamp', 'interpolate', 'mipLevel']);
|
|
277
277
|
vtkTexture(publicAPI, model);
|
|
278
278
|
} // ----------------------------------------------------------------------------
|
|
@@ -728,7 +728,9 @@ function vtkOpenGLTexture(publicAPI, model) {
|
|
|
728
728
|
|
|
729
729
|
function useTexStorage(dataType) {
|
|
730
730
|
if (model._openGLRenderWindow) {
|
|
731
|
-
|
|
731
|
+
var _model$renderable;
|
|
732
|
+
|
|
733
|
+
if (model.resizable || (_model$renderable = model.renderable) !== null && _model$renderable !== void 0 && _model$renderable.getResizable()) {
|
|
732
734
|
// Cannot use texStorage if the texture is supposed to be resizable.
|
|
733
735
|
return false;
|
|
734
736
|
}
|
|
@@ -879,7 +881,7 @@ function vtkOpenGLTexture(publicAPI, model) {
|
|
|
879
881
|
tempData = invertedData[6 * j + _i3];
|
|
880
882
|
}
|
|
881
883
|
|
|
882
|
-
if (
|
|
884
|
+
if (useTexStorage(dataType)) {
|
|
883
885
|
if (tempData != null) {
|
|
884
886
|
model.context.texSubImage2D(model.context.TEXTURE_CUBE_MAP_POSITIVE_X + _i3, j, 0, 0, w, h, model.format, model.openGLDataType, tempData);
|
|
885
887
|
}
|