From 6eb10b4841245b576a68bd37d11d174560a5e7da Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Wed, 21 Mar 2018 19:31:24 -0700 Subject: [PATCH] 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. --- engine/src/flutter/shell/gpu/gpu_surface_gl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/shell/gpu/gpu_surface_gl.cc b/engine/src/flutter/shell/gpu/gpu_surface_gl.cc index f21304c64c..e434f541d4 100644 --- a/engine/src/flutter/shell/gpu/gpu_surface_gl.cc +++ b/engine/src/flutter/shell/gpu/gpu_surface_gl.cc @@ -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);