Handmade Hero»Forums»Code
James Widman
21 posts
Day 441 -- Maybe the OpenGL version played a role in the crash?
Edited by James Widman on Reason: Initial post
On the [url=https://developer.nvidia.com/nsight-graphics-requirements]Nsight Graphics Requirements
page[/url], it says it supports OpenGL 4.2 through 4.5, but it looks like Handmade Hero is currently targeting OpenGL 3.3 (and uses functions that are not in the core spec in version 4.5).

Of course, if that's what the root cause is then Nvidia ought to diagnose it instead of just falling over.

Anyway...

It looks like we might need to either:
(1) start targeting OpenGL 4.5, or
(2) revert back to the previous version of the Nsight plugin (and I guess the driver to match).
498 posts
Day 441 -- Maybe the OpenGL version played a role in the crash?
shouldn't make a difference, 4.5 is backwards compatible with code targeting 3.3
James Widman
21 posts
Day 441 -- Maybe the OpenGL version played a role in the crash?
Edited by James Widman on
ratchetfreak
shouldn't make a difference, 4.5 is backwards compatible with code targeting 3.3


The requirements page also refers to this, which says:

An application that uses a compatibility profile context, but restricts itself to using the OpenGL 4.5 core subset, will also work.

(So, for example, glBegin() and glEnd() apparently cannot be used because they do not exist in the 4.5 core subset.)
James Widman
21 posts
Day 441 -- Maybe the OpenGL version played a role in the crash?
JamesWidman

It looks like we might need to either:
(1) start targeting OpenGL 4.5, or
(2) revert back to the previous version of the Nsight plugin (and I guess the driver to match).


A possible tragedy here would be if you took option (1), and then spent a lot of time on that port, only to find that the new version of Nsight still doesn't work.

So option (2) is maybe less likely to cause an aneurysm.