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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user