Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML-2.4.1 OpenGL error Message  (Read 2112 times)

0 Members and 1 Guest are viewing this topic.

Student555

  • Guest
SFML-2.4.1 OpenGL error Message
« 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?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
SFML-2.4.1 OpenGL error Message
« Reply #1 on: January 19, 2017, 10:06:47 am »
What's your GPU? What's the installed GPU driver version?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Student555

  • Guest
Re: SFML-2.4.1 OpenGL error Message
« Reply #2 on: January 19, 2017, 11:17:11 am »
GPU : Intel(R) HD Graphics 4000
Driver Version: 10.18.10.4276

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Student555

  • Guest
Re: SFML-2.4.1 OpenGL error Message
« Reply #4 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. 

 

anything