File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99#include " pxr/pxr.h"
1010#include " glPlatformContextDarwin.h"
1111
12- #if defined(PXR_OPENGL_SUPPORT_ENABLED )
12+ #if defined(PXR_GL_SUPPORT_ENABLED )
1313#ifdef ARCH_OS_OSX
1414#import < AppKit/NSOpenGL.h>
1515typedef NSOpenGLContext NSGLContext;
2727{
2828public:
2929 Detail () {
30- #if defined(PXR_OPENGL_SUPPORT_ENABLED )
30+ #if defined(PXR_GL_SUPPORT_ENABLED )
3131 context = [NSGLContext currentContext ];
3232#else
3333 context = nil ;
8282void
8383GarchNSGLContextState::MakeCurrent ()
8484{
85- #if defined(PXR_OPENGL_SUPPORT_ENABLED )
85+ #if defined(PXR_GL_SUPPORT_ENABLED )
8686#if defined(ARCH_OS_IPHONE)
8787 [EAGLContext setCurrentContext: _detail->context];
8888#else
9595void
9696GarchNSGLContextState::DoneCurrent ()
9797{
98- #if defined(PXR_OPENGL_SUPPORT_ENABLED )
98+ #if defined(PXR_GL_SUPPORT_ENABLED )
9999#if defined(ARCH_OS_IPHONE)
100100 [EAGLContext setCurrentContext: nil ];
101101#else
Original file line number Diff line number Diff line change 353353 memcpy (dst + dstOffset, src, copyOp.byteSize );
354354 }
355355
356+ #if defined(ARCH_OS_OSX)
356357 if (!sharedBuffer &&
357358 [metalBuffer->GetBufferId ()
358359 respondsToSelector: @selector (didModifyRange: )]) {
364365 [resource didModifyRange: range];
365366 ARCH_PRAGMA_POP
366367 }
368+ #endif // defined(ARCH_OS_OSX)
367369}
368370
369371void
Original file line number Diff line number Diff line change 115115}
116116
117117HgiMetalIndirectCommandEncoder::~HgiMetalIndirectCommandEncoder () {
118+ #if !__has_feature(objc_arc)
118119 [_triangleTessFactors release ];
119120 [_quadTessFactors release ];
121+ #endif // !__has_feature(objc_arc)
120122}
121123
122124std::string
You can’t perform that action at this time.
0 commit comments