×
Namespaces

Variants
Actions
Revision as of 13:08, 15 December 2011 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

From Nokia Developer 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 13:08.
90 page views in the last 30 days.
×