mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix the Mac embedder build (#6525)
This commit is contained in:
parent
436f9707b9
commit
75e875240e
@ -89,6 +89,8 @@ static bool IsRendererValid(const FlutterRendererConfig* config) {
|
||||
return false;
|
||||
}
|
||||
|
||||
#if OS_LINUX || OS_WIN
|
||||
|
||||
static void* DefaultGLProcResolver(const char* name) {
|
||||
static fml::RefPtr<fml::NativeLibrary> proc_library =
|
||||
fml::NativeLibrary::CreateForCurrentProcess();
|
||||
@ -96,6 +98,8 @@ static void* DefaultGLProcResolver(const char* name) {
|
||||
const_cast<uint8_t*>(proc_library->ResolveSymbol(name)));
|
||||
}
|
||||
|
||||
#endif // OS_LINUX || OS_WIN
|
||||
|
||||
static shell::Shell::CreateCallback<shell::PlatformView>
|
||||
InferOpenGLPlatformViewCreationCallback(
|
||||
const FlutterRendererConfig* config,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user