sf::VideoMode VMode(800, 600, 32);
sf::RenderWindow Window(VMode, "SFMLCoder Tutorial - Empty Window");
while (Window.IsOpened())
{
sf::Event Event;
while (Window.PollEvent(Event))
{
switch (Event.Type)
{
case sf::Event::Closed:
Window.Close();
break;
default:
break;
}
}
Window.Clear(sf::Color(0, 255, 255));
Window.Display();
}
Just wondering what is wrong with this code since for some strange reason I'm getting this error when it tries to run:
First-chance exception at 0x00000000 in SFMLTesting.exe: 0xC0000005: Access violation reading location 0x00000000.
Unhandled exception at 0x00000000 in SFMLTesting.exe: 0xC0000005: Access violation reading location 0x00000000.
My compiler than takes me to the RenderTarget.cpp and points out the line with this code on it GLCheck(glUseProgramObjectARB(0));
I'm using the 2.0 screanshot if anyone is wondering.
It would be nice to know what I've messed up here and how to solve this problem.