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 - Android targetSdkVersion>=21 crushes on screen rotation with "E/libEGL: call to OpenGL ES API with no current context (logged once per thread)""
Summary: Android targetSdkVersion>=21 crushes on screen rotation with "E/libEGL: call ...
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 2.0.5
Hardware: All Android (All)
: P2 critical
Assignee: Sylvain
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-09 22:54 UTC by tower120
Modified: 2017-09-05 15:27 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.