FreeBSD Bugzilla – Attachment 193792 Details for
Bug 228569
science/paraview fix build on FreeBSD-CURRENT
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for port science/paraview
patch_paraview_current.diff (text/plain), 9.39 KB, created by
devel
on 2018-05-28 15:57:58 UTC
(
hide
)
Description:
patch for port science/paraview
Filename:
MIME Type:
Creator:
devel
Created:
2018-05-28 15:57:58 UTC
Size:
9.39 KB
patch
obsolete
>diff -ruN paraview.orig/files/patch-vtkOpenGLGlyph3DHelper.cxx paraview/files/patch-vtkOpenGLGlyph3DHelper.cxx >--- paraview.orig/files/patch-vtkOpenGLGlyph3DHelper.cxx 1970-01-01 07:00:00.000000000 +0700 >+++ paraview/files/patch-vtkOpenGLGlyph3DHelper.cxx 2018-05-27 16:21:55.929457000 +0700 >@@ -0,0 +1,20 @@ >+--- VTK/Rendering/OpenGL2/vtkOpenGLGlyph3DHelper.cxx.orig 2018-05-27 16:13:23.631718000 +0700 >++++ VTK/Rendering/OpenGL2/vtkOpenGLGlyph3DHelper.cxx 2018-05-27 16:21:35.310777000 +0700 >+@@ -449,7 +449,7 @@ >+ static_cast<GLuint>(this->VBO->VertexCount - 1), >+ static_cast<GLsizei>(this->Primitives[PrimitiveTris].IBO->IndexCount), >+ GL_UNSIGNED_INT, >+- reinterpret_cast<const GLvoid *>(NULL)); >++ nullptr); >+ } >+ if (primed) >+ { >+@@ -579,7 +579,7 @@ >+ glDrawElementsInstancedARB(GL_TRIANGLES, >+ static_cast<GLsizei>(this->Primitives[PrimitiveTris].IBO->IndexCount), >+ GL_UNSIGNED_INT, >+- reinterpret_cast<const GLvoid *>(NULL), >++ nullptr, >+ numPts); >+ } >+ #endif >diff -ruN paraview.orig/files/patch-vtkOpenGLPolyDataMapper.cxx paraview/files/patch-vtkOpenGLPolyDataMapper.cxx >--- paraview.orig/files/patch-vtkOpenGLPolyDataMapper.cxx 1970-01-01 07:00:00.000000000 +0700 >+++ paraview/files/patch-vtkOpenGLPolyDataMapper.cxx 2018-05-27 16:25:20.689722000 +0700 >@@ -0,0 +1,11 @@ >+--- VTK/Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx.orig 2018-05-27 16:24:15.569847000 +0700 >++++ VTK/Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx 2018-05-27 16:24:49.235720000 +0700 >+@@ -2534,7 +2534,7 @@ >+ static_cast<GLuint>(this->VBO->VertexCount - 1), >+ static_cast<GLsizei>(this->Primitives[i].IBO->IndexCount), >+ GL_UNSIGNED_INT, >+- reinterpret_cast<const GLvoid *>(NULL)); >++ nullptr); >+ this->Primitives[i].IBO->Release(); >+ >+ int stride = (mode == GL_POINTS ? 1 : (mode == GL_LINES ? 2 : 3)); >diff -ruN paraview.orig/files/patch-vtkOpenGLPolyDataMapper2D.cxx paraview/files/patch-vtkOpenGLPolyDataMapper2D.cxx >--- paraview.orig/files/patch-vtkOpenGLPolyDataMapper2D.cxx 1970-01-01 07:00:00.000000000 +0700 >+++ paraview/files/patch-vtkOpenGLPolyDataMapper2D.cxx 2018-05-27 16:29:40.919890000 +0700 >@@ -0,0 +1,38 @@ >+--- VTK/Rendering/OpenGL2/vtkOpenGLPolyDataMapper2D.cxx.orig 2018-05-27 16:27:25.256918000 +0700 >++++ VTK/Rendering/OpenGL2/vtkOpenGLPolyDataMapper2D.cxx 2018-05-27 16:29:21.344983000 +0700 >+@@ -860,7 +860,7 @@ >+ static_cast<GLuint>(this->VBO->VertexCount - 1), >+ static_cast<GLsizei>(this->Points.IBO->IndexCount), >+ GL_UNSIGNED_INT, >+- reinterpret_cast<const GLvoid *>(NULL)); >++ nullptr); >+ this->Points.IBO->Release(); >+ this->PrimitiveIDOffset += (int)this->Points.IBO->IndexCount; >+ } >+@@ -881,7 +881,7 @@ >+ static_cast<GLuint>(this->VBO->VertexCount - 1), >+ static_cast<GLsizei>(this->Lines.IBO->IndexCount), >+ GL_UNSIGNED_INT, >+- reinterpret_cast<const GLvoid *>(NULL)); >++ nullptr); >+ this->Lines.IBO->Release(); >+ } >+ this->PrimitiveIDOffset += (int)this->Lines.IBO->IndexCount/2; >+@@ -899,7 +899,7 @@ >+ static_cast<GLuint>(this->VBO->VertexCount - 1), >+ static_cast<GLsizei>(this->Tris.IBO->IndexCount), >+ GL_UNSIGNED_INT, >+- reinterpret_cast<const GLvoid *>(NULL)); >++ nullptr); >+ this->Tris.IBO->Release(); >+ this->PrimitiveIDOffset += (int)this->Tris.IBO->IndexCount/3; >+ } >+@@ -916,7 +916,7 @@ >+ static_cast<GLuint>(this->VBO->VertexCount - 1), >+ static_cast<GLsizei>(this->TriStrips.IBO->IndexCount), >+ GL_UNSIGNED_INT, >+- reinterpret_cast<const GLvoid *>(NULL)); >++ nullptr); >+ this->TriStrips.IBO->Release(); >+ } >+ } >diff -ruN paraview.orig/files/patch-vtkOpenGLProjectedTetrahedraMapper.cxx paraview/files/patch-vtkOpenGLProjectedTetrahedraMapper.cxx >--- paraview.orig/files/patch-vtkOpenGLProjectedTetrahedraMapper.cxx 1970-01-01 07:00:00.000000000 +0700 >+++ paraview/files/patch-vtkOpenGLProjectedTetrahedraMapper.cxx 2018-05-27 19:38:06.553020000 +0700 >@@ -0,0 +1,11 @@ >+--- VTK/Rendering/VolumeOpenGL2/vtkOpenGLProjectedTetrahedraMapper.cxx.orig 2018-05-27 19:37:01.700537000 +0700 >++++ VTK/Rendering/VolumeOpenGL2/vtkOpenGLProjectedTetrahedraMapper.cxx 2018-05-27 19:37:40.189362000 +0700 >+@@ -1100,7 +1100,7 @@ >+ static_cast<GLuint>(this->VBO->VertexCount - 1), >+ static_cast<GLsizei>(this->Tris.IBO->IndexCount), >+ GL_UNSIGNED_INT, >+- reinterpret_cast<const GLvoid *>(NULL)); >++ nullptr); >+ this->Tris.IBO->Release(); >+ this->Tris.VAO->Release(); >+ this->VBO->Release(); >diff -ruN paraview.orig/files/patch-vtkOpenGLRenderUtilities.cxx paraview/files/patch-vtkOpenGLRenderUtilities.cxx >--- paraview.orig/files/patch-vtkOpenGLRenderUtilities.cxx 1970-01-01 07:00:00.000000000 +0700 >+++ paraview/files/patch-vtkOpenGLRenderUtilities.cxx 2018-05-27 16:39:08.550900000 +0700 >@@ -0,0 +1,12 @@ >+--- VTK/Rendering/OpenGL2/vtkOpenGLRenderUtilities.cxx.orig 2018-05-27 16:31:22.687702000 +0700 >++++ VTK/Rendering/OpenGL2/vtkOpenGLRenderUtilities.cxx 2018-05-27 16:32:03.881401000 +0700 >+@@ -93,8 +93,7 @@ >+ vtkNew<vtkOpenGLBufferObject> ibo; >+ vao->Bind(); >+ ibo->Upload(iboData, numIndices, vtkOpenGLBufferObject::ElementArrayBuffer); >+- glDrawElements(GL_TRIANGLES, numIndices, GL_UNSIGNED_INT, >+- reinterpret_cast<const GLvoid *>(NULL)); >++ glDrawElements(GL_TRIANGLES, numIndices, GL_UNSIGNED_INT, nullptr); >+ ibo->Release(); >+ ibo->ReleaseGraphicsResources(); >+ vao->RemoveAttributeArray("vertexMC"); >diff -ruN paraview.orig/files/patch-vtkOpenGLStickMapper.cxx paraview/files/patch-vtkOpenGLStickMapper.cxx >--- paraview.orig/files/patch-vtkOpenGLStickMapper.cxx 1970-01-01 07:00:00.000000000 +0700 >+++ paraview/files/patch-vtkOpenGLStickMapper.cxx 2018-05-27 16:49:07.921109000 +0700 >@@ -0,0 +1,11 @@ >+--- VTK/Rendering/OpenGL2/vtkOpenGLStickMapper.cxx.orig 2018-05-27 16:48:40.625194000 +0700 >++++ VTK/Rendering/OpenGL2/vtkOpenGLStickMapper.cxx 2018-05-27 16:48:53.507986000 +0700 >+@@ -614,7 +614,7 @@ >+ static_cast<GLuint>(this->VBO->VertexCount - 1), >+ static_cast<GLsizei>(this->Primitives[PrimitiveTris].IBO->IndexCount), >+ GL_UNSIGNED_INT, >+- reinterpret_cast<const GLvoid *>(NULL)); >++ nullptr); >+ this->Primitives[PrimitiveTris].IBO->Release(); >+ } >+ } >diff -ruN paraview.orig/files/patch-vtkPhastaReader.cxx paraview/files/patch-vtkPhastaReader.cxx >--- paraview.orig/files/patch-vtkPhastaReader.cxx 1970-01-01 07:00:00.000000000 +0700 >+++ paraview/files/patch-vtkPhastaReader.cxx 2018-05-27 20:10:13.417495000 +0700 >@@ -0,0 +1,11 @@ >+--- ParaViewCore/VTKExtensions/Default/vtkPhastaReader.cxx.orig 2018-05-27 20:05:20.868911000 +0700 >++++ ParaViewCore/VTKExtensions/Default/vtkPhastaReader.cxx 2018-05-27 20:05:16.469487000 +0700 >+@@ -200,7 +200,7 @@ >+ { >+ text_header = new char[real_length + 1]; >+ strncpy(text_header, Line, real_length); >+- text_header[real_length] = static_cast<char>(NULL); >++ text_header[real_length] = static_cast<char>(0); >+ token = strtok(text_header, ":"); >+ if (cscompare(phrase, token)) >+ { >diff -ruN paraview.orig/files/patch-vtkXOpenGLRenderWindow.cxx paraview/files/patch-vtkXOpenGLRenderWindow.cxx >--- paraview.orig/files/patch-vtkXOpenGLRenderWindow.cxx 1970-01-01 07:00:00.000000000 +0700 >+++ paraview/files/patch-vtkXOpenGLRenderWindow.cxx 2018-05-27 16:58:50.485654000 +0700 >@@ -0,0 +1,40 @@ >+--- VTK/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx.orig 2018-05-27 16:56:49.463432000 +0700 >++++ VTK/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx 2018-05-27 16:58:36.068069000 +0700 >+@@ -333,7 +333,7 @@ >+ >+ vtkXOpenGLRenderWindow::vtkXOpenGLRenderWindow() >+ { >+- this->ParentId = static_cast<Window>(NULL); >++ this->ParentId = static_cast<Window>(0); >+ this->ScreenSize[0] = 0; >+ this->ScreenSize[1] = 0; >+ this->OwnDisplay = 0; >+@@ -341,8 +341,8 @@ >+ this->ForceMakeCurrent = 0; >+ this->UsingHardware = 0; >+ this->DisplayId = static_cast<Display *>(NULL); >+- this->WindowId = static_cast<Window>(NULL); >+- this->NextWindowId = static_cast<Window>(NULL); >++ this->WindowId = static_cast<Window>(0); >++ this->NextWindowId = static_cast<Window>(0); >+ this->ColorMap = static_cast<Colormap>(0); >+ this->OwnWindow = 0; >+ >+@@ -762,7 +762,7 @@ >+ if (this->OwnWindow && this->DisplayId && this->WindowId) >+ { >+ XDestroyWindow(this->DisplayId,this->WindowId); >+- this->WindowId = static_cast<Window>(NULL); >++ this->WindowId = static_cast<Window>(0); >+ } >+ >+ this->CloseDisplay(); >+@@ -1157,7 +1157,7 @@ >+ >+ // set the default windowid >+ this->WindowId = this->NextWindowId; >+- this->NextWindowId = static_cast<Window>(NULL); >++ this->NextWindowId = static_cast<Window>(0); >+ >+ // set everything up again >+ this->Initialize();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 228569
: 193792