Fix OpenGL renderers on macOS.

This commit is contained in:
John Preston 2021-06-11 17:35:16 +04:00
parent ecb53e3e0b
commit 8d8fffd306
2 changed files with 2 additions and 4 deletions

View File

@ -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)

@ -1 +1 @@
Subproject commit 43efd9e3077075f3dbebc9c1cf696c1bd280901f
Subproject commit 9294c8c695554c94800cb68066c9b02729a3d300