From 8d8fffd3063477254a1d86fa2bb375d8e8c8027e Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 11 Jun 2021 17:35:16 +0400 Subject: [PATCH] Fix OpenGL renderers on macOS. --- .../SourceFiles/calls/group/calls_group_viewport_opengl.cpp | 4 +--- Telegram/lib_ui | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/calls/group/calls_group_viewport_opengl.cpp b/Telegram/SourceFiles/calls/group/calls_group_viewport_opengl.cpp index 743c82d7df..ac16035566 100644 --- a/Telegram/SourceFiles/calls/group/calls_group_viewport_opengl.cpp +++ b/Telegram/SourceFiles/calls/group/calls_group_viewport_opengl.cpp @@ -1228,9 +1228,7 @@ void Viewport::RendererGL::validateDatas() { _tileDataIndices[i] = index; } auto image = _names.takeImage(); - const auto imageSize = QSize( - available * factor, - _tileData.size() * nameHeight); + const auto imageSize = QSize(available, _tileData.size() * nameHeight); const auto allocate = (image.size() != imageSize); auto paintToImage = allocate ? QImage(imageSize, QImage::Format_ARGB32_Premultiplied) diff --git a/Telegram/lib_ui b/Telegram/lib_ui index 43efd9e307..9294c8c695 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit 43efd9e3077075f3dbebc9c1cf696c1bd280901f +Subproject commit 9294c8c695554c94800cb68066c9b02729a3d300