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

**URL:** <https://discourse.glfw.org/t/glfwcreatewindow-does-not-create-an-opengl-4-5-context-returns-null/101>\
**Category:** support\
**Created:** [November 12, 2014, 11:04pm UTC](https://discourse.glfw.org/t/glfwcreatewindow-does-not-create-an-opengl-4-5-context-returns-null/101 "2014-11-12T23:04:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [November 12, 2014, 11:04pm UTC](https://discourse.glfw.org/t/glfwcreatewindow-does-not-create-an-opengl-4-5-context-returns-null/101/1 "2014-11-12T23:04:21Z")

</div>

**[rbragapinheiro](https://sourceforge.net/u/rbragapinheiro/)** wrote on [Wednesday, November 12, 2014](https://sourceforge.net/p/glfw/discussion/247562/thread/bba0bc1b/#8e55):

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [November 13, 2014, 9:56am UTC](https://discourse.glfw.org/t/glfwcreatewindow-does-not-create-an-opengl-4-5-context-returns-null/101/2 "2014-11-13T09:56:09Z")

</div>

**[dougbinks](https://sourceforge.net/u/dougbinks/)** wrote on [Thursday, November 13, 2014](https://sourceforge.net/p/glfw/discussion/247562/thread/bba0bc1b/#8e55/d778):

[This page](http://www.geforce.com/hardware/desktop-gpus/geforce-gtx-760/specifications) lists the OpenGL version for the GTX 760 as 4.3, so you can’t make a 4.5  
context.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [November 13, 2014, 12:33pm UTC](https://discourse.glfw.org/t/glfwcreatewindow-does-not-create-an-opengl-4-5-context-returns-null/101/3 "2014-11-13T12:33:54Z")

</div>

**[rbragapinheiro](https://sourceforge.net/u/rbragapinheiro/)** wrote on [Thursday, November 13, 2014](https://sourceforge.net/p/glfw/discussion/247562/thread/bba0bc1b/#29f0):

Hi, Doug. I think that page you referenced is not up-to-date.  
Because on [this page](https://developer.nvidia.com/opengl-driver) 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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [November 13, 2014, 1:04pm UTC](https://discourse.glfw.org/t/glfwcreatewindow-does-not-create-an-opengl-4-5-context-returns-null/101/4 "2014-11-13T13:04:42Z")

</div>

**[dougbinks](https://sourceforge.net/u/dougbinks/)** wrote on [Thursday, November 13, 2014](https://sourceforge.net/p/glfw/discussion/247562/thread/bba0bc1b/#bb75):

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [November 13, 2014, 1:24pm UTC](https://discourse.glfw.org/t/glfwcreatewindow-does-not-create-an-opengl-4-5-context-returns-null/101/5 "2014-11-13T13:24:07Z")

</div>

**[rbragapinheiro](https://sourceforge.net/u/rbragapinheiro/)** wrote on [Thursday, November 13, 2014](https://sourceforge.net/p/glfw/discussion/247562/thread/bba0bc1b/#7f03):

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 ! 🙂

[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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [November 13, 2014, 2:16pm UTC](https://discourse.glfw.org/t/glfwcreatewindow-does-not-create-an-opengl-4-5-context-returns-null/101/6 "2014-11-13T14:16:05Z")

</div>

**[rbragapinheiro](https://sourceforge.net/u/rbragapinheiro/)** wrote on [Thursday, November 13, 2014](https://sourceforge.net/p/glfw/discussion/247562/thread/bba0bc1b/#4ec1):

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/glfw/original/1X/b8cdefe6b61b8d5aee6c43b2c56e9cf5eabecfe4.svg) [@system](https://discourse.glfw.org/u/system)\
**Post date:** [November 13, 2014, 2:54pm UTC](https://discourse.glfw.org/t/glfwcreatewindow-does-not-create-an-opengl-4-5-context-returns-null/101/7 "2014-11-13T14:54:51Z")

</div>

**[dougbinks](https://sourceforge.net/u/dougbinks/)** wrote on [Thursday, November 13, 2014](https://sourceforge.net/p/glfw/discussion/247562/thread/bba0bc1b/#4ec1/10c0):

Excellent, glad to hear you’ve solved it.

On 13 November 2014 15:16, Rodrigo Braga [rbragapinheiro@users.sf.net](mailto: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](https://sourceforge.net/p/glfw/discussion/247562/thread/bba0bc1b/?limit=25#4ec1)
> 
> Sent from [sourceforge.net](http://sourceforge.net) because you indicated interest in  
> [GLFW / Discussion / Using GLFW](https://sourceforge.net/p/glfw/discussion/247562/)
> 
> To unsubscribe from further messages, please visit  
> [SourceForge.net: Log In to SourceForge.net](https://sourceforge.net/auth/subscriptions/)
