Visual Studio 2015
SFML 2.4.1
Windows 10
Dynamic Linking
I'm having trouble running SFML 2.4.1. I keep getting an error message that reads
Warning: The created OpenGL context does not fully meet the settings that were requested
Requested: version = 2.0; depth bits = 0; stencil bits = 0; AA level = 0; core = false; debug = true; sRGB = true
Created version = 4.0; depth bits = 0; stencil bits = 0; AA level = 0; core = false; debug = true; sRGB = true
The display does not draw anything, despite making commands to draw
#include <SFML\Graphics.hpp>
int main()
{
sf::RenderWindow Window(sf::VideoMode(500, 500), "SFGUI - SFML");
sf::RectangleShape rect;
rect.setPosition(100, 500);
rect.setFillColor(sf::Color::Red);
rect.setSize(sf::Vector2f(10.0f, 10.0f));
while(Window.isOpen())
{
Window.clear();
sf::Event Event;
while (Window.pollEvent(Event))
{
switch (Event.type) {
case sf::Event::Closed:
Window.close();
break;
case sf::Event::KeyPressed:
if (sf::Keyboard::isKeyPressed(sf::Keyboard::Escape))
Window.close();
break;
}
}
Window.draw(rect);
Window.display();
}
return 0;
}
Upon closing the display I get the following error
Run-Time Check Failure #2 - Stack around the variable 'Window' was corrupted.
Initially I thought it was the version I originally downloaded (32 bit). Then I tried the 64 bit version and got the following error
Error LNK1112 module machine type 'x64' conflicts with target machine type 'X86' SFGUI Tutorial
What could be the issue?