Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

EglInitialize在某些设备上无法创建控制环境

From Wiki
Jump to: navigation, search
Article Metadata

文章
huwell 在 07 Sep 2007 创建
最后由 hamishwillee 在 15 Dec 2011 编辑
  • 设备, 软件 版本:

S60 3rd Edition

S60 3rd Edition, FP1

Nokia N93, Nokia N93i, Nokia N95, Nokia E90 Communicator


  • 详细描述

eglInitialize函数在那些支持3D图形硬件加速的设备上无法自动创建控制环境(CCoeEnv),这只对那些在程序框架外使用OpenGL ES的程序起作用,例如Open C程序(它没有实现标准的S60 UI)


  • 如何重现

当你试图在上述设备上运行opencopenlex示例时,程序就会返回-6006错误,这个示例包含在Open C SDK Plug-In 中。


  • 解决方案

如果需要的话,请手动创建(并注销)这个控制环境

CCoeEnv* coeEnv = CCoeEnv::Static();
if( !coeEnv )
{
coeEnv = new ( ELeave ) CCoeEnv();
coeEnv->ConstructL( ETrue, 0 );
}
This page was last modified on 15 December 2011, at 10:08.
220 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×