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 1616 - SDL does not use values set with SDL_GL_SetAttribute on Android.
Summary: SDL does not use values set with SDL_GL_SetAttribute on Android.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: All Android (All)
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-06 07:19 UTC by Philipp Wiesemann
Modified: 2012-12-31 15:00 UTC (History)
0 users

See Also:


Attachments
patch for using GL attributes on Android (5.87 KB, patch)
2012-10-06 07:19 UTC, Philipp Wiesemann
Details | Diff
patch for using GL attributes on Android (5.61 KB, patch)
2012-12-15 07:53 UTC, Philipp Wiesemann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Wiesemann 2012-10-06 07:19:57 UTC
Created attachment 966 [details]
patch for using GL attributes on Android

Hello,

SDL does not use values set with SDL_GL_SetAttribute on Android.

I attached a patch which adds this functionality and makes it possible to set (for example) depth buffer size or anti-aliasing in the actual application instead of modifying the Java source (which seems currently the only way).
Comment 1 Philipp Wiesemann 2012-12-15 07:53:30 UTC
Created attachment 997 [details]
patch for using GL attributes on Android

I attached a new version of the patch because some related files changed and the IME fix is no more needed for compatibility with older Android versions.
Comment 2 Sam Lantinga 2012-12-31 15:00:23 UTC
I applied your patch and changed it so the full config is specified from the C++ code so it's more flexible in the future.
http://hg.libsdl.org/SDL/rev/a15821a3471f

Thanks!