SFML community forums

Help => Window => Topic started by: CharlvdM on April 06, 2023, 10:19:30 am

Title: OpenGL entry points from OpenGL32.dll not working
Post by: CharlvdM 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).
Title: Re: OpenGL entry points from OpenGL32.dll not working
Post by: eXpl0it3r 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 :)