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

[egl] add additional check against eglcontext #723

Merged
merged 1 commit into from
Jan 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@ boolean createSurface() {
Log.e(TAG, "mEglConfig not initialized");
return false;
}
if (mEglContext == null) {
Copy link

Choose a reason for hiding this comment

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

Wonder what the outcome would be, if we skip init here black map?
Also, to help debugging, I'd probably enriched logs a bit, like Could not create surface for drawing, mEglContext not initialized

Log.e(TAG, "mEglContext not initialized");
return false;
}

/*
* The window size has changed, so we need to create a new
Expand Down