Skip to content

Commit 8a58285

Browse files
committed
added no-op static initialize/shutdown to macOS backend
1 parent 331ce38 commit 8a58285

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

samples/SimplePlayback/src/SimplePlaybackApp.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020

2121
#undef HAS_DEBUG_UI
2222

23-
#define FORCE_NVIDIA_CARD_IF_PRESENT
23+
#ifdef CINDER_MSW
24+
#define FORCE_NVIDIA_CARD_IF_PRESENT
25+
#endif
2426

2527
#ifdef FORCE_NVIDIA_CARD_IF_PRESENT
2628
extern "C"

src/osx/AX-MediaPlayerOSXImpl.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ namespace AX::Video
2727
{
2828
public:
2929

30+
static void StaticInitialize ( );
31+
static void StaticShutdown ( );
32+
3033
Impl ( MediaPlayer & owner, const ci::DataSourceRef & source, const Format& format );
3134

3235
bool Update ( );

src/osx/AX-MediaPlayerOSXImpl.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030

3131
namespace AX::Video
3232
{
33+
void MediaPlayer::Impl::StaticInitialize ( ) { }
34+
void MediaPlayer::Impl::StaticShutdown ( ) { }
35+
3336
MediaPlayer::Impl::Impl ( MediaPlayer & owner, const DataSourceRef & source, const Format& format )
3437
: _owner ( owner )
3538
, _source ( source )

0 commit comments

Comments
 (0)