From: Anthony Geay Date: Fri, 22 Jun 2018 11:38:03 +0000 (+0200) Subject: API modif of vtkOpenGLTexture::ResampleToPowerOfTwo X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fagy%2FPV55;p=modules%2Fgui.git API modif of vtkOpenGLTexture::ResampleToPowerOfTwo --- diff --git a/src/VTKViewer/VTKViewer_Texture.cxx b/src/VTKViewer/VTKViewer_Texture.cxx index c6faba0b1..c8d5aa9ff 100644 --- a/src/VTKViewer/VTKViewer_Texture.cxx +++ b/src/VTKViewer/VTKViewer_Texture.cxx @@ -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)