Iphone Opengl Error 1286
Contents |
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 opengl error 1286 (invalid framebuffer operation) site About Us Learn more about Stack Overflow the company Business Learn
Opengl Invalid Framebuffer Operation
more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x opengl error 1286 processing Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up OpenGL glcheckframebufferstatus error 0x0506 in DrawSegment 190 up vote 0 down vote favorite I created an Xcode Project, where I use cocos2d as a static library (I don't use the template). To incorporate cocos2d in my storyboard, I followed the tutorial here: cocos2d & storyboards As a result I setup CCDirector by using the CCViewController class described in the tutorial. Everything works fine, except every now
Gl_invalid_framebuffer_operation
and then the console spits out a number of OpenGL errors like: OpenGL error 0x0506 in DrawSegment 190 My CCGLView is created like this in viewDidLoad: CGRect rect = self.view.frame; CGFloat width; CGFloat height; if (rect.size.width > rect.size.height) { width = rect.size.width; height = rect.size.height; } else { width = rect.size.height; height = rect.size.width; } CCGLView *glView = [CCGLView viewWithFrame:CGRectMake(0, 0, width, height) pixelFormat:kEAGLColorFormatRGB565 depthFormat:0 preserveBackbuffer:NO sharegroup:nil multiSampling:NO numberOfSamples:0]; What are these OpenGL errors, and how can I fix them? If I use the template I don't have these problems. ios objective-c opengl-es cocos2d-iphone share|improve this question edited Dec 9 '13 at 14:19 genpfault 35.5k83776 asked Dec 8 '13 at 10:15 John 2,48021859 Error 0x506 is "Invalid Framebuffer Operation". (Defined in OpenGL/gl.h and OpenGL/glext.h.) It means that you haven't set up your framebuffer properly. You need to ensure that you have a valid, complete framebuffer before doing your OpenGL drawing. I don't know cocos2d, so I'm not sure if there are steps you need to take there to make it happen or if you need to just set up your own. Here's the documentation on how to s
Sign In Register Categories Recent Discussions Unanswered Categories All Categories 17.2KAnnouncements & Guidelines gl_invalid_value 6 Common Questions 24 Using Processing 15.1K Programming Questions 8.5K Questions opengl error codes about Code 3.9K How To... 3.3K Hello Processing 55 GLSL / Shaders 189 Library Questions 2.7K
Optifine
Hardware, Integration & Other Languages 1.6K Kinect 431 Arduino 660 Raspberry PI 58 Questions about Modes 1.3K Android Mode 799 JavaScript Mode 325 Python Mode 80 Questions http://stackoverflow.com/questions/20452214/opengl-error-0x0506-in-drawsegment-190 about Tools 84 Developing Processing 323 Create & Announce Libraries 170 Create & Announce Modes 12 Create & Announce Tools 22 Summer of code 2016 4 Summer of Code 2015 40 Summer of Code 2014 22 p5.js 619 p5.js Programming Questions 321 p5.js Library Questions 127 p5.js Development Questions 18 General 1.1K Share https://forum.processing.org/two/discussion/9540/opengl-error-1286 Your Work 487 Events & Opportunities 208 General Discussion 319 In this Discussion rbrauer February 2015 Yafimski February 2015 OpenGL error 1286 Yafimski February 2015 in Hardware, Integration & Other Languages Hi, I'm getting the following message error: Framebuffer error (unknown error), rendering will probably not work as expected Read http://wiki.processing.org/w/OpenGL_Issues for help. OpenGL error 1286 at bot beginDraw(): invalid framebuffer operation OpenGL error 1286 at top endDraw(): invalid framebuffer operation This is following a run of the following code: PShape rectangle; void setup() { size(640,360,P2D); frameRate(30); rectangle = createShape(RECT,-50,-25,100,50); } void draw() { background(51); if (mousePressed) { translate(mouseX,mouseY); shape(rectangle); } } I have Processing version 2.2.1 My system is Windows 7, 64-bit, with an Intel Graphic Card, but also with a GeForce GT 525M. I read some of the related posts online and in this forum, but it seems there is no solution for me... I tried checking if the GeForce is up to date, it is. (also
Jul '10Posts: 266 humble Moderating BirdJoined: Jul '10Posts: 266 Hello people. Just wanted to see if someone has come across this and have a solution. What my project does is I have a view controller with the sparrow view as its http://forum.sparrow-framework.org/topic/failed-to-create-framebuffer-8cd6 view. Then I present another modal view, all good, but sometimes when I remove it (not all times), I get this error: failed to create framebuffer: 8cd6 And the sparrow view rotates 90 degrees, stretches to the new dimensions http://lists.apple.com/archives/mac-opengl/2012/Jul/msg00041.html and becomes unresponsive. However, when this happens presenting the modal view a second time and removing it, all is good again, always. Dismissing the modal view never works if animation is true but with false it works sometimes. Not opengl error sure what to do here really. I am using sparrow 1.4 I think, possible 1.3. Thanks ERik Posted 3 years ago # humble Moderating BirdJoined: Jul '10Posts: 266 humble Moderating BirdJoined: Jul '10Posts: 266 I am just going to add it as a subview I think. Would have been nice the other way, but. Ah, well. Thanks ERik Posted 3 years ago # Daniel Primary FeatherJoined: Jan '10Posts: 4,709 Daniel Primary FeatherJoined: Jan '10Posts: 4,709 Sorry, I haven't got opengl error 1286 an idea what could cause that, either. I'd need to try that with a demo project. Posted 3 years ago # humble Moderating BirdJoined: Jul '10Posts: 266 humble Moderating BirdJoined: Jul '10Posts: 266 That is ok. Using a subview to present my modal seems to work anyway, and I still have the nice present view animation. Yey. I could be wrong but the error seemed to happen mostly if the modal view was heavy on memory, causing a memory warning. I am guessing sparrow maybe does some things there to not crash, like dumping the pool. I don't know. Thanks anyway Daniel. Keep up the good work. Thanks ERik Posted 3 years ago # Ron Moderating BirdJoined: Sep '10Posts: 142 Ron Moderating BirdJoined: Sep '10Posts: 142 Hi Daniel & humble, For the record, I just ran into this problem. It only happens on device, and works fine in iPhone Simulator. I am also using Sparrow 1.4. Sorry I haven't upgraded to Sparrow 2.x yet for Tiny Piano. Don't want to "fix" what's been working great for so long. SPView is the main view of my root view controller. I add a heavyweight modal view as a subview of the SPView. (In the past, adding subviews has worked fine. For example, I put the iAd banner as a subview of SPView.) When I remove the heavyweight modal view, I get failed to create framebuffer:
by glClear() Subject: Re: GL_INVALID_FRAMEBUFFER_OPERATION generated by glClear() From: Gabriele de Simone