From: Anthony Geay Date: Fri, 22 Jun 2018 11:38:03 +0000 (+0200) Subject: API modif of vtkOpenGLTexture::ResampleToPowerOfTwo X-Git-Tag: SHAPER_V9_1_0RC1~8^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4444aae1f5322eae93be1257dcad646596a4b032;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)