From fa1fee307abf21305639b0d0922b191cd9a71ef1 Mon Sep 17 00:00:00 2001 From: moadib Date: Tue, 12 Feb 2013 19:00:02 +0400 Subject: [PATCH] Added window_group creation to CCEGLView for blackberry --- cocos2dx/platform/blackberry/CCEGLView.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cocos2dx/platform/blackberry/CCEGLView.cpp b/cocos2dx/platform/blackberry/CCEGLView.cpp index 6f11c20d47..7f166a996c 100644 --- a/cocos2dx/platform/blackberry/CCEGLView.cpp +++ b/cocos2dx/platform/blackberry/CCEGLView.cpp @@ -355,7 +355,7 @@ bool CCEGLView::initGL() }; // Create the screen context. - rc = screen_create_context(&m_screenContext, 0); + rc = screen_create_context(&m_screenContext, SCREEN_APPLICATION_CONTEXT); if (rc) { perror("screen_create_context"); @@ -370,6 +370,12 @@ bool CCEGLView::initGL() return false; } + rc = screen_create_window_group(m_screenWindow, m_windowGroupID); + if (rc) + { + perror("screen_create_window_group"); + return false; + } // Set/get any window prooperties. rc = screen_set_window_property_iv(m_screenWindow, SCREEN_PROPERTY_FORMAT, &screenFormat); if (rc)