Hi,
I'm using a AMD HD7870 Eyefinity edtion card with the 12.11 beta driver. I have built the latest version of SFML for Win32 and I am using Visual Studio 2010 Pro.
The problem:
While things work pretty nice while running the actual program (execpt for the issue when clearing it
http://en.sfml-dev.org/forums/index.php?topic=9350.msg63358#msg63358, which I still got) I get some BSOD when exiting the application, it some times happens many times in a row and some time very infrequently. This seems to happen more often when using the 12.10 driver than the 12.11 beta driver and it seems that it never happens when not using a RenderTexture. I would roll back the driver even further but I want to make use of Eyefinity, for 6 screens, (I get BSOD with and without Eyefinity enabled) which doesn't work that great with older drivers.
Test program:
static bool useRenderTexture = true;
main(int argc, char *argv[])
{
sf::VideoMode desktopVideoMode = sf::VideoMode::getDesktopMode();
sf::VideoMode selectedMode = desktopVideoMode;
sf::ContextSettings contextSettings;
contextSettings.antialiasingLevel = 8;
sf::RenderWindow window(selectedMode, "Test", sf::Style::Fullscreen, contextSettings);
window.setFramerateLimit(60);
sf::Sprite renderSprite;
sf::RenderTexture renderTexture;
if (useRenderTexture)
{
renderTexture.create(selectedMode.width, selectedMode.height);
renderSprite.setTexture(renderTexture.getTexture(), true);
}
sf::RectangleShape rectangeShape;
rectangeShape.setSize(sf::Vector2f(selectedMode.width / 2.0f, selectedMode.height / 2.0f));
rectangeShape.setPosition(50.f, 50.f);
rectangeShape.setFillColor(sf::Color::Red);
while(window.isOpen())
{
sf::Event event;
while(window.pollEvent(event))
{
if(event.type == sf::Event::Closed ||
sf::Keyboard::isKeyPressed(sf::Keyboard::Escape))
window.close();
}
if (useRenderTexture)
{
renderTexture.clear();
renderTexture.draw(rectangeShape);
renderTexture.display();
window.clear();
window.draw(renderSprite);
window.display();
}
else
{
window.clear();
window.draw(rectangeShape);
window.display();
}
}
}
// Zap