Handmade Hero » Forums » Code » Day 441 -- Maybe the OpenGL version played a role in the crash?
JamesWidman
James Widman
21 posts
#14864 Day 441 -- Maybe the OpenGL version played a role in the crash?
4 months, 2 weeks ago Edited by James Widman on April 8, 2018, 1:18 a.m. 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).
ratchetfreak
383 posts
#14865 Day 441 -- Maybe the OpenGL version played a role in the crash?
4 months, 2 weeks ago

shouldn't make a difference, 4.5 is backwards compatible with code targeting 3.3
JamesWidman
James Widman
21 posts
#14866 Day 441 -- Maybe the OpenGL version played a role in the crash?
4 months, 2 weeks ago Edited by James Widman on April 8, 2018, 2:44 a.m.

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.)
JamesWidman
James Widman
21 posts
#14867 Day 441 -- Maybe the OpenGL version played a role in the crash?
4 months, 2 weeks ago

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.