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

Author Topic: Remove Microsoft OpenGL implementation warning  (Read 2299 times)

0 Members and 1 Guest are viewing this topic.

oscar0204

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Remove Microsoft OpenGL implementation warning
« on: July 30, 2019, 08:23:08 am »
Hi!

I am using SFML 2.5.1 with Visual Studio 2019 and everything is working as it should, but everytime I open a sf::Window I get a warning in my console:
Warning: Detected "Microsoft Corporation GDI Generic" OpenGL implementation
The current OpenGL implementation is not hardware-accelerated
Setting vertical sync not supported
OpenGL extension SGIS_texture_edge_clamp unavailable
Artifacts may occur along texture edges
Ensure that hardware acceleration is enabled if available


I am guessing the problem is cause I am using integrated intel graphics, but is there someway I can surpress this warning? I am using the console for some outputs so it would be nice if the warning wasn't there.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Remove Microsoft OpenGL implementation warning
« Reply #1 on: July 30, 2019, 09:01:36 am »
Installing a proper OpenGL driver (as far as Intel OpenGL drivers can be "proper") should fix it.
Laurent Gomila - SFML developer

oscar0204

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Remove Microsoft OpenGL implementation warning
« Reply #2 on: July 30, 2019, 09:44:30 am »
Unfortunately I'm on my work computer and I can't install stuff without authorization. Is there a way to just surpress the warning?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Remove Microsoft OpenGL implementation warning
« Reply #3 on: July 30, 2019, 12:00:07 pm »
SFML offers no option to suppress this message. A workaround would be to redirect sf::err() to a null output, create the window, then restore the previous output of sf::err(). With the risk of missing any other important information printed during window creation.
Laurent Gomila - SFML developer