Skip to content

Commit

Permalink
Fix a crash with possible empty contact name.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jul 21, 2023
1 parent f8e8155 commit 75dc7e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Telegram/SourceFiles/media/view/media_view_overlay_opengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,10 @@ void OverlayWidget::RendererGL::paintStoriesSiblingPart(
float64 opacity) {
Expects(index >= 0 && index < kStoriesSiblingPartsCount);

if (image.isNull() || rect.isEmpty()) {
return;
}

_f->glActiveTexture(GL_TEXTURE0);

auto &part = _storiesSiblingParts[index];
Expand Down

0 comments on commit 75dc7e6

Please sign in to comment.