[Title] Fix emulator crash if no matching config is found while using rdp.
authorSangjin Kim <sangjin3.kim@samsung.com>
Thu, 30 Aug 2012 10:58:32 +0000 (19:58 +0900)
committerSangjin Kim <sangjin3.kim@samsung.com>
Thu, 30 Aug 2012 10:58:32 +0000 (19:58 +0900)
[Type] bug fix
[Module] opengl
[Priority]
[CQ#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

tizen/src/hw/gloffscreen_xcomposite.c

index c276bfa08c95891458db3bb76118def2b00e689d..d8d38b0154f407ffdb58c7b1136f0c40437b3f76 100644 (file)
@@ -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,