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

Since OS_MACOSX and OS_IOS are both enabled for simulator builds, ensure
we're using constants conistent with our #includes.
This commit is contained in:
Chris Bracken
2018-03-21 19:31:24 -07:00
committed by GitHub
parent 9dcf4907f6
commit 6eb10b4841

View File

@@ -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);