mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-04 00:25:17 +00:00
Fix a crash with possible empty contact name.
This commit is contained in:
@@ -896,6 +896,10 @@ void OverlayWidget::RendererGL::paintStoriesSiblingPart(
|
|||||||
float64 opacity) {
|
float64 opacity) {
|
||||||
Expects(index >= 0 && index < kStoriesSiblingPartsCount);
|
Expects(index >= 0 && index < kStoriesSiblingPartsCount);
|
||||||
|
|
||||||
|
if (image.isNull() || rect.isEmpty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_f->glActiveTexture(GL_TEXTURE0);
|
_f->glActiveTexture(GL_TEXTURE0);
|
||||||
|
|
||||||
auto &part = _storiesSiblingParts[index];
|
auto &part = _storiesSiblingParts[index];
|
||||||
|
Reference in New Issue
Block a user