Cocos2D 2.0 OpenGL 错误? [英] Cocos2D 2.0 OpenGL errors?

查看:32
本文介绍了Cocos2D 2.0 OpenGL 错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,它在 Cocos2D 1.1 版中运行良好.当我升级到 2.0rc0a 时,我现在只看到一个黑屏,并且我不停地收到以下 4 个错误,直到我退出应用程序:

In my app it was working fine in Cocos2D version 1.1. When I upgraded to 2.0rc0a, I just see a black screen now and I get the following 4 errors nonstop until I quit the application:

OpenGL error 0x0506 in -[CCSprite draw] 532
OpenGL error 0x0506 in -[CCParticleSystemQuad draw] 461
OpenGL error 0x0506 in -[CCTextureAtlas drawNumberOfQuads:fromIndex:] 543
OpenGL error 0x0506 in -[CCGLView swapBuffers] 280

所以我用谷歌搜索了一下,似乎该应用找不到 着色器文件.什么着色器文件?是否有特定名称或者是 ALL Cocos2D 文件?

So I googled this a bit and it seems that the app cannot find the shader files. What shader files? Is there a specific name or is it ALL Cocos2D files?

另外,我该如何解决这个问题?目前我的项目中没有任何警告或错误.

Also how would I fix this issue? I currently have no warnings or errors in my project.

谢谢!

推荐答案

着色器文件现在是头文件 (.h),在之前的 beta 版本中它们是资源文件 (.vsh/.fsh).

The shader files are now header files (.h), in previous beta versions they were resource files (.vsh/.fsh).

我想你没有将这些新添加的 cocos2d 文件添加到你的项目中.在现有项目中升级 cocos2d 时,总是删除整个 cocos2d 文件夹并将其替换为新文件夹,然后删除 Xcode 中所有丢失的(红色)文件并添加可能已添加的所有新文件.

I suppose that you did not add these newly added cocos2d files to your project. When upgrading cocos2d in an existing project, always delete the entire cocos2d folder and replace it with the new one, then remove any missing (red) files in Xcode and also add any new files that might have been added.

这篇关于Cocos2D 2.0 OpenGL 错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆