yoametetsu / panoramagl

Automatically exported from code.google.com/p/panoramagl
0 stars 0 forks source link

Failed to make complete framebuffer object 8cd6" #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

We are using the PanoramaGL library for a project.

The library works fine, but we are having an issue when we close a panoramic 
view, move back to the home page and re open the panoramic view.

Most often than not when following this cycle we get the following 
error:"Failed to make complete framebuffer object 8cd6"

When we close and open the panoramic a number of times, it then loads up well.

Do you have any idea how we could solve this ? such as clearing the buffer when 
the user presses the home button ?

Best regards,

Zak.

Original issue reported on code.google.com by zak.b...@gmail.com on 24 Oct 2012 at 6:15

GoogleCodeExporter commented 9 years ago
I am having the same issue. Was there any resolution?

Original comment by AnthonyS...@gmail.com on 11 Jan 2013 at 3:43

GoogleCodeExporter commented 9 years ago
Same issue ! Any solutions ?

Original comment by fjmerch...@gmail.com on 9 Apr 2013 at 2:23

GoogleCodeExporter commented 9 years ago
Yes I have the same issue. I faced it around 20 days, but not get any solution. 
but finally i solved it. I have also given dairy milk to my friends , bcoz i 
was very happy.

Why exactly is happen.
1) I use storyboard
2) I assign my viewcontroller view to PLView. I have attached screen shot.
3) In my .h file i declare 
   PLView *plView;
4) In my .m file
    plView = (PLView *)self.view;
    plView.delegate = self;

   I declare this code in viewDidLoad() method.
(This is the actual cause of the problem , Dont do this)

Reason: because when u create this in viewdidload , the view is not properly 
loaded, thats why it show failed to create.

Best way is to create in viewwillappear.

-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];

    if (!alreadyCreated)
    {
            //create plview
        plView = (PLView *)self.view;
        plView.delegate = self;

        //refresh the layout at starting.
        [plView layoutSubviews];

        alreadyCreated = YES;
    }
}

Remember viewwillapper can be called multiple time , but u want to create 
plview only once . i manage by creating a BOOL variable. so initially its false 
. and next time true. means this code will executed once.   

I solved the issue and i am very happy.

Original comment by dr.amolj...@gmail.com on 11 Aug 2014 at 7:10

Attachments: