Archived:EglInitialize does not set up control environment on some S60 3rd Edition PF1 devices (Known Issue)
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.
Article Metadata
Tested with
Devices(s): Nokia N93, Nokia N93i, Nokia N95, Nokia E90 Communicator
Compatibility
Platform(s): S60 3rd Edition (initial release), FP1
Article
Created: User:Technical writer 1
(30 Aug 2007)
Last edited: hamishwillee
(19 Jun 2012)
Description
The eglInitialize function does not automatically set up control environment (CCoeEnv) on devices that support hardware-accelerated 3D graphics. This only affects applications that use OpenGL ES outside the application framework, for example Open C applications that do not implement a standard S60 UI.
How to reproduce
When trying to run the opencopenglex example on the above devices, the application fails with -6006 error.
The example is included in the Open C SDK Plug-In.
Solution
Construct (and destroy) the control environment manually if needed.
CCoeEnv* coeEnv = CCoeEnv::Static();
if( !coeEnv )
{
coeEnv = new ( ELeave ) CCoeEnv();
coeEnv->ConstructL( ETrue, 0 );
}


(no comments yet)