Opengl Error 0x0502 Cocos2d
Contents |
Cocos2d-x Project to Github, please create new issue there. Thanks. Create Issue on Github OpenGL error 0x0502 Bug #2564 [Rejected] godyZ 2013-08-19 07:28 . Updated almost 2 years ago (waiter opened opengl error 0x0502 in ccsprite draw this issue a month ago in github) In TestCpp , ClippingNodeTest, Hole Demo
Opengl Error 0x0502 Cocos2dx
then you will see this error OpenGL error 0x0502 in d:2d-x-2.1.4\cocos2dx\sprite_nodes\ccsprite.cpp cocos2d::CCSprite::draw 591 I use win7 and cocos2d-x 2.1.4 in
Opengl Error 0x0502 In Ccsprite Draw 532
debug mode. And cocos2d-x 2.1.3 also have this issue. On Android, you will see: E/Adreno200-ES20(29536): <__load_uniform_float:531>: GL_INVALID_OPERATION #1 zhangxm 2013-08-22 03:48 Status changed from New to Rejected Target version changed from Candidate to
Opengl Error 0x0506
34 It is fixed in 3.0 alpha0 pre. #2 Donmizzi 2014-01-04 23:19 Minggo Zhang wrote: It is fixed in 3.0 alpha0 pre. Is there an workaround for the cocos2d-x 2.2? CCSprite in the 3.0aplha has huge changes. thanks Don #3 walzer@cocos2d-x.org 2014-01-08 08:32 Target version deleted (34) #4 Harion 2014-09-27 13:16 This issue has came back in cocos2d-x v3.2 when I use GLES-Render to debug for box2D in the physical map made by tiledmap. This bug just appear when I use GLES-Render to debug box2D and it was not often in past but when I add more and more tile layers and object into map so now it's appearing usually. And the terrible is when this bug appeared my system is slowing down so that I must to use Force Quit to close Xcode. My tilemap (29 x 190) tiles and tiles width is 64. **This is my code ** void Level::prepareLayers() { for (auto& object : this->map->getChildren()) { // is this map child a tile layer? auto layer = dynamic_cast
681 I tested it in the TestCpp project and it happens there too. It turns out the actual error is in CCTMXLayer::parseInternalProperties() when a CCTMXLayer has cc_vertexz == automatic. The GL error happens in the setUniformLocationWith1f() call. The issue can be reproduced by running the “TMX http://www.cocos2d-x.org/issues/2564 Iso VertexZ” or “TMX Ortho vertexZ” tests. Any ideas how to fix? Pickleman 2013-06-29 18:57:40 UTC #2 I’m having the same issue. Has anyone figured out how to fix this? (it works fine if I remove setUniformLocationWith1f()…except I can’t set http://discuss.cocos2d-x.org/t/opengl-error-0x0502-when-loading-tile-maps/7432 my uniforms) zhangxm 2013-07-01 05:58:24 UTC #3 Thanks.#2346 is created for it. Pickleman 2013-07-01 06:16:02 UTC #4 Actually, I think this might be a non-issue. As far as I know (and I don’t know very much about opengl), you need to have a shader loaded/“used” in order to set uniforms for it. That may be incorrect though, does anybody know? It fixed my problems. zhangxm 2013-07-03 06:35:30 UTC #5 I fixed it in this pull request. feiben 2013-08-08 03:14:30 UTC #6 Minggo Zhang wrote: I fixed it in this pull request. hi, Minggo我在2.1.4基础上按照你的pull request手动改的,但是依然会有该错误OpenGL error 0x0502 in ……..2dx\textures\cctextureatlas.cpp cocos2d::CCTextureAtlas::drawNumberOfQuads 681 Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled
Sign in Pricing Blog Support Search GitHub This repository Watch 1,281 Star 8,964 Fork 5,762 cocos2d/cocos2d-x Code Issues 825 Pull requests 150 Projects 0 https://github.com/cocos2d/cocos2d-x/issues/3217 Wiki Pulse Graphs New issue OpenGL error 0x0502 #3217 Closed waiter opened this Issue Jul 23, 2013 · 15 comments Projects None yet Labels None yet Milestone No milestone http://stackoverflow.com/questions/29953275/ccclippingnode-causes-opengl-error-0x0502 Assignees No one assigned 6 participants waiter commented Jul 23, 2013 In TestCpp , ClippingNodeTest, Hole Demo then you will see this error OpenGL error 0x0502 in d:\cocos2d-x-2.1.4\cocos2dx\sprite_nodes\ccsprite.cpp cocos2d::CCSprite::draw opengl error 591 I use win7 and cocos2d-x 2.1.4 in debug mode. And cocos2d-x 2.1.3 also have this issue. On Android, you will see: E/Adreno200-ES20(29536): <__load_uniform_float:531>: GL_INVALID_OPERATION Please HELP! minggo commented Jul 23, 2013 It is fixed with latest codes in github. waiter commented Jul 23, 2013 @minggo could you tell me more information? thank you. minggo commented Jul 23, 2013 It opengl error 0x0502 is because ControlSwitchSprite::needsLayout will invoke Sprite::setTexture which changes gl program. Then it will cause error when set uniform in ControlSwitchSprite::draw(). Because ControlSwitchSprite::draw() doesn't check opengl error code, so the error happens in Sprite::draw. Now we change the logic of Sprite::setTexture. minggo commented Jul 23, 2013 @waiter I am sorry, i misunderstood the error. What i said is another error. dabingnn commented Jul 23, 2013 @waiter , I tested in two different android phones with the Hole Demo test, meizu MX2 and htc g14. The test ran with no error info log in meizu MX2, however in HTC G14, I confronted with the error! E/Adreno200-ES20(29209): <__load_uniform_float:510>: GL_INVALID_OPERATION It seems that different gles implementation has different shader capacity. We will confirm the reason why it happened! Thanks for your proposal! dabingnn commented Jul 23, 2013 @waiter , can you tell us what phone model your were using when you confronted the error? gelldur commented Jul 23, 2013 PR on master it isn't fixed or i am wrong #3213 gelldur commented Jul 23, 2013 This also exist in CCControlSwitch example whole app works
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up CCClippingnode causes OpenGL error 0x0502 up vote 0 down vote favorite I'm using cocos2d-iPhone v.2.2, updating an old game, and I have a clipping node that is causing an error. In AppDelegate.m, I switched the settings to use CCClippingNode: CCGLView *glView = [CCGLView viewWithFrame:[window_ bounds] pixelFormat:kEAGLColorFormatRGB565 depthFormat:GL_DEPTH24_STENCIL8_OES //switched from 0 preserveBackbuffer:NO sharegroup:nil multiSampling:NO numberOfSamples:0]; And then I used this code to make the clipper in my mainGame.m //after interface @property (nonatomic, strong) CCClippingNode *shadowClipper; //in the init method CCSprite *stencil = [CCSprite spriteWithSpriteFrameName:@"clipper.png"]; stencil.position = ccp(winSize.width/2, winSize.height/2); _shadowClipper = [CCClippingNode clippingNodeWithStencil:stencil]; _shadowClipper.alphaThreshold = 0.0; [_gameLayer addChild:_shadowClipper z:2]; The console logs "OpenGL error 0x0502 in -[CCSprite draw] 530" but other than that the clipping node is doing what it's supposed to in the simulator. Any ideas about what's causing the error and what I can do to fix it? ios objective-c cocos2d-iphone opengl-es ccsprite share|improve this question edited Apr 29 '15 at 20:11 genpfault 35.6k83776 asked Apr 29 '15 at 19:55 pdmorrill 52 If you leave the alphaThreshold alone (defaults to 1), the error should disappear (