ports/graphics/opensubdiv/files/patch-opensubdiv_hbr_mesh.h
Vladimir Druzenko f251a78efa graphics/opensubdiv: sort out Makefile, pet portclippy, fix build on 32bit
- Remove unnecessary libs from USE_GL and add required.
- Fix build on 32bit ARCHS, upstream issue:
https://github.com/PixarAnimationStudios/OpenSubdiv/issues/1198#issuecomment-2143940211
- Make options OPENMP (for supported ARCHS) and PTEX default.
- EXAMPLES and OPENCL can build together without errors.
- Remove NO_GL_TESTS - upstream removed it.
- Sort options and pet portclippy.

PR:		279472
Approved by:	Shane <FreeBSD@ShaneWare.Biz> (maintainer)
2024-06-03 13:46:50 +03:00

12 lines
671 B
C

--- opensubdiv/hbr/mesh.h.orig 2023-09-14 19:19:06 UTC
+++ opensubdiv/hbr/mesh.h
@@ -215,7 +215,7 @@ template <class T> class HbrMesh { (public)
void SetFVarPropagateCorners(bool p) { fvarpropagatecorners = p; }
// Register routines for keeping track of memory usage
- void RegisterMemoryRoutines(void (*increment)(unsigned long bytes), void (*decrement)(unsigned long bytes)) {
+ void RegisterMemoryRoutines(void (*increment)(size_t bytes), void (*decrement)(size_t bytes)) {
m_faceAllocator.SetMemStatsIncrement(increment);
m_faceAllocator.SetMemStatsDecrement(decrement);
m_vertexAllocator.SetMemStatsIncrement(increment);