Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Fix assert in gfx resources cleanup #16349

Merged
merged 2 commits into from
Mar 30, 2020
Merged

Conversation

mpulkki-mapbox
Copy link
Contributor

A resource leak assertion in gl::Context::~Context() is evaluating false in scenarios where graphics context has been marked as lost. In these cases the underlying system handles resource cleanup and the assertion should not be checked.

This change fixes the issue mapbox/mapbox-gl-native-android#300

@mpulkki-mapbox
Copy link
Contributor Author

cc @tobrun

Copy link
Contributor

@alexshalamov alexshalamov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, tested with RecyclerView GLSurfaceView activity.
@mpulkki-mapbox could you add bugfix entry to a changelog?

@mpulkki-mapbox mpulkki-mapbox merged commit 5fa7ff3 into master Mar 30, 2020
@mpulkki-mapbox mpulkki-mapbox deleted the mpulkki-fix-cleanup-assert branch March 30, 2020 15:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants