Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Unified Diff: src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp

Issue 357343002: Fix ANGLE build wrong glGetString being called issue (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp
diff --git a/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp b/src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp
index d63dfbbcd63edf3bd6cd9f3f8f1f5a884e930f0a..7afa2e07625999930d161be0eb98a6edcf47d034 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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698