diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-09-02 13:08:34 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-09-06 09:58:53 +0200 |
commit | 6de5cf2df82e5025bd9f02e9f38922f8c7c4b3b5 (patch) | |
tree | 98b317d29c9afeecf369a6aac8ed7be9162d7abf /mkspecs/features/create_cmake.prf | |
parent | 14ade9c4760d12c9370f4f355e03fa7e31a4a9d5 (diff) |
rhi: metal: Avoid upsetting validation in viewport and scissor
When running with the threaded render loop of Qt Quick, it could be that
the drawable changes size while the render thread prepares the command
buffer with setViewport and setScissor. Those have no chance to see
such changes, which is normally not a big problem because the resize will
get processed eventually.
However, in debug builds running in XCode, Metal validation checks the
viewport and scissor rects against the (more or less) actual drawable
size, and so would abort Qt Quick apps from time to time when resizing
the window interactively. To solve this, we just query the drawable size
in setViewport/setScissor to keep validation happy.
Change-Id: I451f398bd1f88e3f49ea4624fc45bbb4b70e7f07
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'mkspecs/features/create_cmake.prf')
0 files changed, 0 insertions, 0 deletions