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 3514

Summary: Android targetSdkVersion>=21 crushes on screen rotation with "E/libEGL: call to OpenGL ES API with no current context (logged once per thread)""
Product: SDL Reporter: tower120
Component: *don't know*Assignee: Sylvain <sylvain.becker>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: critical    
Priority: P2 CC: sylvain.becker, tower120
Version: 2.0.5   
Hardware: All   
OS: Android (All)   

Description tower120 2016-12-09 22:54:52 UTC
On Android builds with targetSdkVersion>=21 application crushes on screen rotation with: 
"E/libEGL: call to OpenGL ES API with no current context (logged once per thread)"
This happens BEFORE size change event being emitted;

If launch with older version all works fine.


The workaround for this is to add screenSize to android:configChanges, like this:

<activity
android:configChanges="keyboardHidden|orientation|screenSize"
Comment 1 Sylvain 2017-09-05 10:43:45 UTC
screenSize has been added in the meatimes,
https://hg.libsdl.org/SDL/rev/1f151426c2ca
bug 3448

 so this is fixed.