SFML community forums

Help => Graphics => Topic started by: Debilo on September 29, 2010, 04:29:17 pm

Title: Crash on glDeleteFramebuffersEXT
Post by: Debilo on September 29, 2010, 04:29:17 pm
Hey guys,
I know, this is my 3rd thread within a week or so, but as soon as I registered here, problems that I'm not able to solve myself magically started coming up...

Given the following code:
Code: [Select]
#include <SFML/Graphics>

int main()
{
if (!sf::RenderImage::IsAvailable()) return -1;
sf::RenderImage img;
        if (!img.Create(800, 600)) return -1;
} // Crash


As the comment already implies, my program crashes when calling sf::RenderImage::~RenderImage(). Mory exactly, the unhandled exception appears to come from the following piece of code in RenderImageImplFBO.cpp:
Code: [Select]
RenderImageImplFBO::~RenderImageImplFBO()
{
    // Destroy the depth buffer
    if (myDepthBuffer)
    {
        GLuint depthBuffer = static_cast<GLuint>(myDepthBuffer);
        GLCheck(glDeleteFramebuffersEXT(1, &depthBuffer));
    }

    // Destroy the frame buffer
    if (myFrameBuffer)
    {
        GLuint frameBuffer = static_cast<GLuint>(myFrameBuffer);
        GLCheck(glDeleteFramebuffersEXT(1, &frameBuffer)); // Crash
    }
}


Yet again, the comment indicates where the crash occurs.
Operating system is Windows 7 64 bit, SFML version is the latest SVN snapshot of 2.0, custom built binaries for 64 bit (the crash occurred under 32 bit, too, anyway). My graphics "card", if this is somehow relevant, is an Intel HD Graphics onboard chip.

I don't know if I made a mistake using sf::RenderImage or if I discovered an SFML bug. Maybe you can help me out

regards,
Debilo
Title: Re: Crash on glDeleteFramebuffersEXT
Post by: skumar2891 on March 03, 2013, 09:23:31 pm
Hi Debilo,

Is the issue you have mentioned in resolved.
I am facing a similar kind of issue with my application.
Let me know if you have any update on this.

Thanks & Regards
Shashi
Title: AW: Crash on glDeleteFramebuffersEXT
Post by: eXpl0it3r on March 03, 2013, 10:32:18 pm
Do you seriously think someone will be able to give a precise answer to a problem they had 2.5 YEARS ago? ???

If you wamt help you have to provide information on your system and what and how you're doing things.