From 2495cadceeaa4ded4aadbb1b9491523f19362822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Wed, 9 Sep 2015 13:05:31 +0200 Subject: [PATCH] Fix the color of the preloading state --- RNGL/GLCanvas.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RNGL/GLCanvas.m b/RNGL/GLCanvas.m index 80e4a70..9e354ae 100644 --- a/RNGL/GLCanvas.m +++ b/RNGL/GLCanvas.m @@ -270,7 +270,11 @@ NSString* srcResource (id res) - (void)drawRect:(CGRect)rect { - if (!_preloadingDone) return; + if (!_preloadingDone) { + glClearColor(0.0, 0.0, 0.0, 0.0); + glClear(GL_COLOR_BUFFER_BIT); + return; + } BOOL needsDeferredRendering = _nbContentTextures > 0; if (needsDeferredRendering && !_deferredRendering) { dispatch_async(dispatch_get_main_queue(), ^{ -- 2.26.2