We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3735

Summary: [patch] Add support for [GLX/WGL]_ARB_create_context_robustness
Product: SDL Reporter: Maximilian Malek <maximilian.malek>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2 CC: mdiluzio
Version: HG 2.1Keywords: target-2.0.6
Hardware: All   
OS: All   
Attachments: patch file
Test program

Description Maximilian Malek 2017-08-10 13:30:26 UTC
Created attachment 2824 [details]
patch file

The attached patch adds some missing bits for full ARB_robustness compatibility,
specifically support for glGetGraphicsResetStatus() via WGL_ARB_create_context_robustness and GLX_ARB_create_context_robustness.

This builds upon patch [https://bugzilla.libsdl.org/show_bug.cgi?id=3643] and adds the WGL version.
I have removed support for NV_robustness_video_memory_purge from that patch because the extension states "This extension will have a limited lifespan" and I figured that adding an SDL API for a temporary NV-only extension isn't worth it.
I've also renamed the new enum values a bit to be more consistent.
Comment 1 Maximilian Malek 2017-08-10 13:33:24 UTC
Created attachment 2825 [details]
Test program

A test program for the patch. On a recent GL 4.5 compatible setup + patched SDL it should print "GL context is fully robust".
Comment 2 Ryan C. Gordon 2017-08-10 16:09:47 UTC
*** Bug 3643 has been marked as a duplicate of this bug. ***
Comment 3 Ryan C. Gordon 2017-08-19 19:04:14 UTC
This patch is now https://hg.libsdl.org/SDL/rev/e3797888c6f1, thanks!

--ryan.