diff options
author | mtklein <mtklein@chromium.org> | 2016-08-10 07:30:21 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-10 07:30:21 -0700 |
commit | 3d96cb8db71895ff1e34d537774f94a578fcec49 (patch) | |
tree | 23ae9e6fdc85921f3e93d5c864e9cb24d77e9c24 /include/gpu | |
parent | d1cfb5bebec0b2a8e36e6e1f5768cbb473522000 (diff) |
Default GR_GL_FUNCTION_TYPE to __stdcall on Windows.
Why is this configurable if we can't work without it?
Just to confirm, this is a Windows constraint, not an MSVC constraint, right?
Clang on Windows also needs __stdcall?
BUG=skia:5617
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2233883002
Review-Url: https://codereview.chromium.org/2233883002
Diffstat (limited to 'include/gpu')
-rw-r--r-- | include/gpu/gl/GrGLConfig.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/gpu/gl/GrGLConfig.h b/include/gpu/gl/GrGLConfig.h index 82963a7520..20ee37fe30 100644 --- a/include/gpu/gl/GrGLConfig.h +++ b/include/gpu/gl/GrGLConfig.h @@ -21,7 +21,11 @@ #endif #if !defined(GR_GL_FUNCTION_TYPE) - #define GR_GL_FUNCTION_TYPE + #if defined(SK_BUILD_FOR_WIN32) + #define GR_GL_FUNCTION_TYPE __stdcall + #else + #define GR_GL_FUNCTION_TYPE + #endif #endif /** |