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

Summary: SDL does not use values set with SDL_GL_SetAttribute on Android.
Product: SDL Reporter: Philipp Wiesemann <philipp.wiesemann>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: Android (All)   
Attachments: patch for using GL attributes on Android
patch for using GL attributes on Android

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!