Salome HOME
API modif of vtkOpenGLTexture::ResampleToPowerOfTwo
authorAnthony Geay <anthony.geay@edf.fr>
Fri, 22 Jun 2018 11:38:03 +0000 (13:38 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 9 Jul 2018 11:03:04 +0000 (13:03 +0200)
src/VTKViewer/VTKViewer_Texture.cxx

index c6faba0b19e009aaeccf64bc1e0a7a1333969567..c8d5aa9ffa531c89dba0cc299c637aad393da006 100644 (file)
@@ -583,9 +583,10 @@ void VTKViewer_Texture::Load(vtkRenderer *ren)
 
       if (resampleNeeded)
         {
-        vtkDebugMacro(<< "Resampling texture to power of two for OpenGL");
-        resultData = this->ResampleToPowerOfTwo(xsize, ysize, dataPtr,
-                                                bytesPerPixel);
+          //ostate->vtkglGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxDimGL);
+          vtkDebugMacro(<< "Resampling texture to power of two for OpenGL");
+          resultData = this->ResampleToPowerOfTwo(xsize, ysize, dataPtr,
+                                                  bytesPerPixel, maxDimGL);
         }
 
       if (!resultData)