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 4983 - test: Improved detection of OpenGL support
Summary: test: Improved detection of OpenGL support
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: HG 2.0
Hardware: All All
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks: 4984
  Show dependency treegraph
 
Reported: 2020-02-13 22:29 UTC by Cameron Cawley
Modified: 2020-02-15 00:23 UTC (History)
0 users

See Also:


Attachments
test: Improved detection of OpenGL support (2.28 KB, patch)
2020-02-13 22:29 UTC, Cameron Cawley
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cameron Cawley 2020-02-13 22:29:38 UTC
Created attachment 4214 [details]
test: Improved detection of OpenGL support

This patch does two things:

 - It now uses SDL_opengles.h and SDL_opengles2.h instead of the platform specific GLES headers. This is consistent with the OpenGL test.
 - It also ensures that OpenGL is supported by SDL on a given platform by checking for the SDL_VIDEO_OPENGL* defines.
Comment 1 Sam Lantinga 2020-02-15 00:23:38 UTC
Looks good, thanks!
https://hg.libsdl.org/SDL/rev/cf2ef2000634