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

Author Topic: OpenGL entry points from OpenGL32.dll not working  (Read 589 times)

0 Members and 1 Guest are viewing this topic.

CharlvdM

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
OpenGL entry points from OpenGL32.dll not working
« on: April 06, 2023, 10:19:30 am »
The changes in commit 21af6fecf142882b08e1f2aa006bb406a3631e96 causes my project to throw an exception when I try to render a window. Specifically, the glGetInegerv function in GLExtensions.cpp in the ensureExtensionsInit function attempts to dereference a null pointer. At the start of the call stack, I try to construct a sf::RenderWindow.

I am able to fix the problem by reverting the changes of the mentioned commit in the WglContext.cpp file. Unfortunately, my knowledge of OpenGL is too limited to precisely understand the cause of the problem, hence this post.

Note: I compile SFML as a static submodule (the BUILD_SHARED_LIBS flag is set to FALSE in my CMakeLists.txt).

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
Re: OpenGL entry points from OpenGL32.dll not working
« Reply #1 on: April 06, 2023, 02:33:22 pm »
Yes, the change was only really tested on non-Nvidia systems. The Nvidia driver decided to do things differently, for which we already provided a fix.
As such, I suggest to fetch the latest master and rebuild :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything