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:
#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:
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