diff options
author | bsalomon <bsalomon@google.com> | 2014-06-30 09:26:52 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-06-30 09:26:52 -0700 |
commit | f957254b15605729ec309a182d19423aaa7946e8 (patch) | |
tree | 94a2a63bcf92eb3b98bcdcab97efa3b5f5a5a87a /src/gpu/gl/win | |
parent | 238b456a7c6fb85c15f1ec288ea4f406a1a89da2 (diff) |
Fix ANGLE build wrong glGetString being called issue
R=robertphillips@google.com
TBR=robertphillips@google.com
Author: bsalomon@google.com
Review URL: https://codereview.chromium.org/357343002
Diffstat (limited to 'src/gpu/gl/win')
-rw-r--r-- | src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp b/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp index d63dfbbcd6..7afa2e0762 100644 --- a/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp +++ b/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp @@ -82,7 +82,11 @@ const GrGLInterface* GrGLCreateNativeInterface() { return NULL; } - const char* verStr = reinterpret_cast<const char*>(glGetString(GR_GL_VERSION)); + GrGLGetStringProc getString = (GrGLGetStringProc)getter.getProc("glGetString"); + if (NULL == getString) { + return NULL; + } + const char* verStr = reinterpret_cast<const char*>(getString(GR_GL_VERSION)); GrGLStandard standard = GrGLGetStandardInUseFromString(verStr); if (kGLES_GrGLStandard == standard) { |