From e7307ea31aaa4757c319d7cb9fd381b2cfdc19c5 Mon Sep 17 00:00:00 2001 From: Sangjin Kim Date: Thu, 30 Aug 2012 19:58:32 +0900 Subject: [PATCH] [Title] Fix emulator crash if no matching config is found while using rdp. [Type] bug fix [Module] opengl [Priority] [CQ#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] --- tizen/src/hw/gloffscreen_xcomposite.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tizen/src/hw/gloffscreen_xcomposite.c b/tizen/src/hw/gloffscreen_xcomposite.c index c276bfa08c..d8d38b0154 100644 --- a/tizen/src/hw/gloffscreen_xcomposite.c +++ b/tizen/src/hw/gloffscreen_xcomposite.c @@ -197,6 +197,10 @@ GloContext *glo_context_create(int formatFlags, GloContext *shareLists) { GloContext *context = __glo_context_create(formatFlags); + if (!context) { + return NULL; + } + /* Create a GLX context for OpenGL rendering */ context->context = glXCreateNewContext(glo.dpy, context->fbConfig, GLX_RGBA_TYPE, -- 2.34.1