glfwCreateWindow does not create an OpenGL 4.5 context (returns NULL)

rbragapinheiro wrote on Wednesday, November 12, 2014:

Hi, everybody!

First of all I will tell you my environment:

GLFW version: 3.1.0
GLEW version: 1.11.0 [release 08-11-14]
Renderer: GeForce GTX 760
Driver: 344.65

I’m trying to implement a sample using OpenGL 4.5 to test the Direct State Access (DSA) extension. Unfortunately, the glfwCreateWindow returns NULL. Any idea?

Ahhh …
I have tested forcing glfwWindowHint but nothing happened.

Thank you,
Rodrigo Braga

dougbinks wrote on Thursday, November 13, 2014:

This page lists the OpenGL version for the GTX 760 as 4.3, so you can’t make a 4.5
context.

rbragapinheiro wrote on Thursday, November 13, 2014:

Hi, Doug. I think that page you referenced is not up-to-date.
Because on this page is written that the GeForce 700 series (including GeForce GTX 760) supports the OpenGL 4.5 if the driver version 340.82 is installed (remember: I’m using 344.65 version).

What do you think?

Thank you,
Rodrigo Braga

dougbinks wrote on Thursday, November 13, 2014:

Create a context without any window hints for version, which should work, then call glGetString( GL_VERSION ) and print the output. This will tell you what version is supported.

rbragapinheiro wrote on Thursday, November 13, 2014:

I have done this.
I will investigate a little bit more.
I’m sure it is not a problem with glfwCreateWindow.
Sorry for the false alarm and thank you ! :slight_smile:

[INFO ] GLFW version: 3.1.0 Win32 WGL VisualC DLL
[INFO ] GLEW version: 1.11.0
[INFO ] OpenGL version: 4.4.0 NVIDIA 344.65
[INFO ] GLSL version: 4.40 NVIDIA via Cg compiler
[INFO ] Vendor: NVIDIA Corporation
[INFO ] Renderer: GeForce GTX 760/PCIe/SSE2

rbragapinheiro wrote on Thursday, November 13, 2014:

Just for information, the problem was simple to solve:
The 344.65 driver version does not support the OpenGL 4.5. So I made a downgrade to the 340.82 driver version and it solved.

dougbinks wrote on Thursday, November 13, 2014:

Excellent, glad to hear you’ve solved it.

On 13 November 2014 15:16, Rodrigo Braga rbragapinheiro@users.sf.net
wrote:

Just for information, the problem was simple to solve:
The 344.65 driver version does not support the OpenGL 4.5. So I made a
downgrade to the 340.82 driver version and it solved.

glfwCreateWindow does not create an OpenGL 4.5 context (returns NULL)
https://sourceforge.net/p/glfw/discussion/247562/thread/bba0bc1b/?limit=25#4ec1

Sent from sourceforge.net because you indicated interest in
GLFW / Discussion / Using GLFW

To unsubscribe from further messages, please visit
SourceForge.net: Log In to SourceForge.net