Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Crash on glDeleteFramebuffersEXT  (Read 1797 times)

0 Members and 1 Guest are viewing this topic.

Debilo

  • Newbie
  • *
  • Posts: 10
    • View Profile
Crash on glDeleteFramebuffersEXT
« 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

skumar2891

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: Crash on glDeleteFramebuffersEXT
« Reply #1 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

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: Crash on glDeleteFramebuffersEXT
« Reply #2 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/