Bug fixes for Nacl port.

This commit is contained in:
James Chen 2013-05-09 20:02:40 +08:00
parent 00391997ae
commit 23f23be681
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ bool OpenGLContext::MakeContextCurrent()
return false; return false;
} }
CCLOG("glSetCurrentContextPPAPI: %p", m_graphics3d.pp_resource()); CCLOG("glSetCurrentContextPPAPI: %p", (void*)m_graphics3d.pp_resource());
glSetCurrentContextPPAPI(m_graphics3d.pp_resource()); glSetCurrentContextPPAPI(m_graphics3d.pp_resource());
return true; return true;
} }

View File

@ -82,7 +82,7 @@ bool CocosPepperInstance::Init(uint32_t argc, const char* argn[], const char* ar
#ifdef OLD_NACL_MOUNTS #ifdef OLD_NACL_MOUNTS
m_runner = new MainThreadRunner(this); m_runner = new MainThreadRunner(this);
#else #else
CCLOG("%p %p", pp_instance(), pp::Module::Get()->get_browser_interface()); CCLOG("%p %p", (void*)pp_instance(), (void*)pp::Module::Get()->get_browser_interface());
nacl_io_init_ppapi(pp_instance(), pp::Module::Get()->get_browser_interface()); nacl_io_init_ppapi(pp_instance(), pp::Module::Get()->get_browser_interface());
CCLOG("done nacl_mounts_init_ppapi"); CCLOG("done nacl_mounts_init_ppapi");