未验证 提交 2ec5a67d 编写于 作者: C Chris Bracken 提交者: GitHub

Fix supported color type check on iOS simulators (#4846)

Since OS_MACOSX and OS_IOS are both enabled for simulator builds, ensure
we're using constants conistent with our #includes.
上级 9b837652
......@@ -87,7 +87,7 @@ static SkColorType FirstSupportedColorType(GrContext* context, GLenum* format) {
*format = (y); \
return (x); \
}
#if OS_MACOSX
#if OS_MACOSX && !OS_IOS
RETURN_IF_RENDERABLE(kRGBA_8888_SkColorType, GL_RGBA8);
#else
RETURN_IF_RENDERABLE(kRGBA_8888_SkColorType, GL_RGBA8_OES);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册