SFML community forums

Help => General => Topic started by: Student555 on January 19, 2017, 08:42:21 am

Title: SFML-2.4.1 OpenGL error Message
Post by: Student555 on January 19, 2017, 08:42:21 am
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
Code: [Select]
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
Code: [Select]
#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
Code: [Select]
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
Code: [Select]

Error LNK1112 module machine type 'x64' conflicts with target machine type 'X86' SFGUI Tutorial

   
What could be the issue?
Title: SFML-2.4.1 OpenGL error Message
Post by: eXpl0it3r on January 19, 2017, 10:06:47 am
What's your GPU? What's the installed GPU driver version?
Title: Re: SFML-2.4.1 OpenGL error Message
Post by: Student555 on January 19, 2017, 11:17:11 am
GPU : Intel(R) HD Graphics 4000
Driver Version: 10.18.10.4276
Title: Re: SFML-2.4.1 OpenGL error Message
Post by: eXpl0it3r on January 19, 2017, 11:18:44 am
Try updating your graphics driver: https://downloadcenter.intel.com/download/25977/Intel-Graphics-Driver-for-Windows-10-and-Windows-7-8-1-15-33-?product=81499
Title: Re: SFML-2.4.1 OpenGL error Message
Post by: Student555 on January 19, 2017, 08:08:29 pm
Tried to update the GPU drivers. I do not think it successfully installed as the Driver Version is still 10.18.10.4276. In addition, I tried running the code and and still getting the same error.