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 2407 - Support for OpenGL ES 3 contexts on iOS
Summary: Support for OpenGL ES 3 contexts on iOS
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.1
Hardware: iPhone/iPod touch iOS (All)
: P2 enhancement
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-19 21:59 UTC by Alex Szpakowski
Modified: 2014-02-22 23:23 UTC (History)
1 user (show)

See Also:


Attachments
Patch to add support for OpenGL ES 3 on iOS (1.77 KB, patch)
2014-02-19 21:59 UTC, Alex Szpakowski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Szpakowski 2014-02-19 21:59:15 UTC
Created attachment 1564 [details]
Patch to add support for OpenGL ES 3 on iOS

Currently the UIKit/EAGL backend for SDL's OpenGL context creation API doesn't support OpenGL ES 3, despite iOS 7+ being capable (on devices with the necessary hardware.)

I have attached a patch to add support. It's also slightly more future-proof, so eventual OpenGL ES 4+ capability on iOS should hopefully work without requiring changes to SDL's UIKit/EAGL backend.
Comment 1 Gabriel Jacobo 2014-02-20 14:04:06 UTC
Looks good to me. As a suggestion, it may be better to move the initialization entirely to the switch statement and error out in the "default" case (in which case the "case 3" should be entirely guarded by #ifdef __IPHONE_7_0)
Comment 2 Sam Lantinga 2014-02-22 23:23:49 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/ffece8ab18a6