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

Fix assert in gfx resources cleanup - #16349

Merged
mpulkki-mapbox merged 2 commits into
masterfrom
mpulkki-fix-cleanup-assert
Mar 30, 2020
Merged

mpulkki-mapbox merged 2 commits into
masterfrom
mpulkki-fix-cleanup-assert

Conversation

@mpulkki-mapbox

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

cc @tobrun

@alexshalamov alexshalamov left a comment

Copy link
Copy Markdown
Contributor

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