Skip to content

Commit e78f86e

Browse files
authored
Fix mac builds. Only Linux and Windows require default GL proc resolvers. (#6641)
1 parent 52e48ab commit e78f86e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shell/platform/embedder/embedder.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ static bool IsRendererValid(const FlutterRendererConfig* config) {
8989
return false;
9090
}
9191

92+
#if OS_LINUX || OS_WIN
9293
static void* DefaultGLProcResolver(const char* name) {
9394
static fml::RefPtr<fml::NativeLibrary> proc_library =
9495
#if OS_LINUX
@@ -99,6 +100,7 @@ static void* DefaultGLProcResolver(const char* name) {
99100
return static_cast<void*>(
100101
const_cast<uint8_t*>(proc_library->ResolveSymbol(name)));
101102
}
103+
#endif // OS_LINUX || OS_WIN
102104

103105
static shell::Shell::CreateCallback<shell::PlatformView>
104106
InferOpenGLPlatformViewCreationCallback(

0 commit comments

Comments
 (0)