@@ -350,7 +350,7 @@ function vtkOpenGLTexture(publicAPI, model) {
350
350
351
351
//----------------------------------------------------------------------------
352
352
publicAPI . getInternalFormat = ( vtktype , numComps ) => {
353
- if ( ! model . internalFormat ) {
353
+ if ( ! model . _forceInternalFormat ) {
354
354
model . internalFormat = publicAPI . getDefaultInternalFormat (
355
355
vtktype ,
356
356
numComps
@@ -399,6 +399,7 @@ function vtkOpenGLTexture(publicAPI, model) {
399
399
400
400
//----------------------------------------------------------------------------
401
401
publicAPI . setInternalFormat = ( iFormat ) => {
402
+ model . _forceInternalFormat = true ;
402
403
if ( iFormat !== model . internalFormat ) {
403
404
model . internalFormat = iFormat ;
404
405
publicAPI . modified ( ) ;
@@ -447,6 +448,7 @@ function vtkOpenGLTexture(publicAPI, model) {
447
448
publicAPI . resetFormatAndType = ( ) => {
448
449
model . format = 0 ;
449
450
model . internalFormat = 0 ;
451
+ model . _forceInternalFormat = false ;
450
452
model . openGLDataType = 0 ;
451
453
} ;
452
454
@@ -1465,6 +1467,7 @@ function vtkOpenGLTexture(publicAPI, model) {
1465
1467
1466
1468
const DEFAULT_VALUES = {
1467
1469
_openGLRenderWindow : null ,
1470
+ _forceInternalFormat : false ,
1468
1471
context : null ,
1469
1472
handle : 0 ,
1470
1473
sendParametersTime : null ,
0 commit comments