Salome HOME
Add detection procedure for SHAPERSTUDY
[tools/configuration.git] / config / patches / paraview.002_statestorage_bug.patch
1 diff -Naur ParaView-5.6.0-bfaf7b82_SRC_orig/VTK/Rendering/OpenGL2/vtkStateStorage.h ParaView-5.6.0-bfaf7b82_SRC_modif/VTK/Rendering/OpenGL2/vtkStateStorage.h
2 --- ParaView-5.6.0-bfaf7b82_SRC_orig/VTK/Rendering/OpenGL2/vtkStateStorage.h    2019-06-25 16:00:38.000000000 +0300
3 +++ ParaView-5.6.0-bfaf7b82_SRC_modif/VTK/Rendering/OpenGL2/vtkStateStorage.h   2019-07-12 11:32:00.000000000 +0300
4 @@ -51,8 +51,11 @@
5  
6  #include <algorithm>
7  #include <string>
8 +#include <vector>
9  
10 -#ifndef NDEBUG // a debug implementation
11 +// uncomment the folowing line to add in state debugging information
12 +//#define USE_STATE_DEBUGGING 1
13 +#ifdef USE_STATE_DEBUGGING
14  
15  class VTKRENDERINGOPENGL2_EXPORT vtkStateStorage
16  {
17 @@ -120,7 +123,7 @@
18    this->Storage.insert(this->Storage.end(), start, start + sizeof(T));
19  }
20  
21 -#else // release implementation
22 +#else // normal implementation
23  
24  class VTKRENDERINGOPENGL2_EXPORT vtkStateStorage
25  {
26 @@ -157,7 +160,7 @@
27    this->Storage.insert(this->Storage.end(), start, start + sizeof(T));
28  }
29  
30 -#endif // Release implementation
31 +#endif // normal implementation
32  
33  #endif // vtkStateStorage_h
34