mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +02:00
Fix OpenGL renderers on macOS.
This commit is contained in:
parent
ecb53e3e0b
commit
8d8fffd306
2 changed files with 2 additions and 4 deletions
|
@ -1228,9 +1228,7 @@ void Viewport::RendererGL::validateDatas() {
|
||||||
_tileDataIndices[i] = index;
|
_tileDataIndices[i] = index;
|
||||||
}
|
}
|
||||||
auto image = _names.takeImage();
|
auto image = _names.takeImage();
|
||||||
const auto imageSize = QSize(
|
const auto imageSize = QSize(available, _tileData.size() * nameHeight);
|
||||||
available * factor,
|
|
||||||
_tileData.size() * nameHeight);
|
|
||||||
const auto allocate = (image.size() != imageSize);
|
const auto allocate = (image.size() != imageSize);
|
||||||
auto paintToImage = allocate
|
auto paintToImage = allocate
|
||||||
? QImage(imageSize, QImage::Format_ARGB32_Premultiplied)
|
? QImage(imageSize, QImage::Format_ARGB32_Premultiplied)
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 43efd9e3077075f3dbebc9c1cf696c1bd280901f
|
Subproject commit 9294c8c695554c94800cb68066c9b02729a3d300
|
Loading…
Add table
Reference in a new issue