Hey y'all, I'm super new to graphics programming and I am currently following the guide on learnopengl.com.
I followed the instructions and setup my project on Visual Studio 2022. To test out that all libraries and dependencies are installed correctly before moving ahead, I am trying to run the example program found on GLFW's documentation (https://www.glfw.org/documentation.html) which creates a window and sets up an OpenGL context
I have added the include files and the .lib files in my project settings as instructed. However, when I run the program, it terminates with a -1 during glfwCreateWindow().
Upon adding more logging to this program, turns out this is the error causing it: " WGL: The driver does not appear to support OpenGL"
I have a laptop with dual GPU: RTX 4050 and AMD Radeon 780M.
So far, I have updated both my graphic drivers to the latest version and also forced windows to always use RTX 4050. But I am still facing this issue and I'm honestly stuck. Most of the solutions on google are for Minecraft and it's as simple as downloading opengl32.dll and adding it to your java folder.
I'd really appreciate it if someone could point me in a direction of what could be going wrong.