From 4bcea3c76378dfd6e6de53b7ad9807fc9fd932fd Mon Sep 17 00:00:00 2001 From: rachytski Date: Thu, 17 Feb 2011 23:09:45 +0200 Subject: [PATCH] fixes "white screen" bug --- iphone/Maps/Classes/EAGLView.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iphone/Maps/Classes/EAGLView.mm b/iphone/Maps/Classes/EAGLView.mm index 6087e09233..8aee021e51 100644 --- a/iphone/Maps/Classes/EAGLView.mm +++ b/iphone/Maps/Classes/EAGLView.mm @@ -41,12 +41,12 @@ eaglLayer.opaque = YES; - /// ColorFormat : RGBA8 - /// Backbuffer : NO + /// ColorFormat : RGB565 + /// Backbuffer : YES, (to prevent from loosing content when mixing with ordinary layers). eaglLayer.drawableProperties = [NSDictionary dictionaryWithObjectsAndKeys: - [NSNumber numberWithBool:NO], + [NSNumber numberWithBool:YES], kEAGLDrawablePropertyRetainedBacking, - kEAGLColorFormatRGBA8, + kEAGLColorFormatRGB565, kEAGLDrawablePropertyColorFormat, nil];