Alright, I've spent hours trying to find the cause for this error. This will occur at some time during the main program loop - usually from 2 to 10 loops will trigger this to happen:
#include "SFML\Graphics.hpp"
int main()
{
sf::RenderWindow window(sf::VideoMode(800, 400), "hi");
while (window.isOpen())
{
sf::Event e;
while (window.pollEvent(e))
{
if (e.type == sf::Event::Closed)
window.close();
}
window.clear(sf::Color::Black);
window.display();
}
return 0;
}
For context, this error has followed me through two different versions of SFML since I encountered it this morning: 2.2 and 2.3.2.
I have tried the builds from the download page and my own builds from the source, neither seem to affect this issue.
Additionally, I've tried using both 32 bit and 64 bit builds on both of the aforementioned sfml versions.
I've also tried using both static and dynamic linking (debug) both with 32 and 64 bit on both versions.
Yes, I did change my settings to adjust for the different build versions.
From what I can gather, this error might be somehow related to my graphics card (Intel(R) HD Graphics 4000).
I have a hunch this error is related to my upgrade to Windows 10. Certainly, I never had anything like this on 8.1.
Here are all my project settings etc:https://imgur.com/a/j4670/allIf anybody can shed some light onto what is happening, your help would be greatly appreciated.
Alternatively, if you can show me some way of debugging this issue myself, that would also be welcome.