summaryrefslogtreecommitdiffstats
path: root/app/gfx/gl/gl_implementation_mac.cc
diff options
context:
space:
mode:
Diffstat (limited to 'app/gfx/gl/gl_implementation_mac.cc')
-rw-r--r--app/gfx/gl/gl_implementation_mac.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/gfx/gl/gl_implementation_mac.cc b/app/gfx/gl/gl_implementation_mac.cc
index 877ca38..73f8462 100644
--- a/app/gfx/gl/gl_implementation_mac.cc
+++ b/app/gfx/gl/gl_implementation_mac.cc
@@ -43,6 +43,11 @@ bool InitializeGLBindings(GLImplementation implementation) {
reinterpret_cast<GLGetProcAddressProc>(
base::GetFunctionPointerFromNativeLibrary(
library, "OSMesaGetProcAddress"));
+ if (!get_proc_address) {
+ LOG(ERROR) << "OSMesaGetProcAddress not found.";
+ base::UnloadNativeLibrary(library);
+ return false;
+ }
SetGLGetProcAddressProc(get_proc_address);
AddGLNativeLibrary(library);