Archived:Running Open C OpenGL example on hardware-accelerated devices fails (Known Issue)
The OpenC plug-in has the opencopenglex example application. However, installing and running it on a hardware-accelerated device gives the following error: "StartGameL failed with result=-6006!".
The OpenC plug-in can be downloaded here. It has the OpenGL example which works fine on most devices. However, it gives the error "StartGameL failed with result=-6006!" when installed on a hardware-accelerated device, such as the Nokia N93 and the Nokia N95.
The error occurs because the CCoeEnv is not initialized. Adding the following lines to the file openglex.cpp solves this issue.
// Create the control environment.
CCoeEnv* environment = new (ELeave) CCoeEnv();
TRAPD( err, environment->ConstructL( ETrue, 0 ) );