qt5base-lts/tests/auto/gui/rhi
Eskil Abrahamsen Blomfeldt 3ec0df4b5f RHI: Store texture handle as 64-bit int
When storing a void* pointer to the texture handle, we had
to ensure that the variable would exist until the build phase,
which is error prone and caused errors in QQuickWidget because
we copied the texture ID from the FBO into a local variable
before passing it into QQuickWindow::setRenderTarget().

The reason for using a void* was that we cannot know the width
of the handles in the different backends, but we do know that
they are 64-bit at maximum, so instead of storing potentially
dangling pointers, we just make it a 64-bit integer and cast
it back and forth in the backends.

Task-number: QTBUG-78638
Change-Id: I7951e24351ddb209045ab6197d81eb1290b4da67
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
2020-05-22 10:32:10 +02:00
..
qrhi RHI: Store texture handle as 64-bit int 2020-05-22 10:32:10 +02:00
qshader Hotfix for int->qsizetype fallout in QShader 2020-05-05 11:34:39 +02:00
CMakeLists.txt Port rhi tests 2019-10-28 12:04:46 +00:00
rhi.pro Introduce the Qt graphics abstraction as private QtGui helpers 2019-06-13 10:13:45 +02:00