summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@qt.io>2022-07-13 15:32:46 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-08-05 15:26:13 +0000
commit010f977f9b53940ef535284c835ff247863b4b2a (patch)
treef24729ea4569ca60a9f9634ea4a6431b8cd05548 /cmake
parent936af3ef8a3e5c639554aeed4ad68f2e9b2bd99b (diff)
eglfs: Fix crash when painting the mouse cursor in a multiscreen setup
Always make sure to initialize the OpenGL functions. Instead of relying on the shaderprogram initialization, which is bound to the current context, check for the d_ptr and initialize when not already done. With this fix QEglFSCursor::draw works regardless of which context is current and checking for that is not needed anymore in paintOnScreen. This is important as the basic render loop only uses one context for painting on all screens, while the threaded render loop uses multiple contexts. Change-Id: I4ac2f5184c2fce27421e92efe1b7f635c71c0e92 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> (cherry picked from commit f9eb2a7bdb9c86166848b3ff96ac7e055a8f567b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'cmake')
0 files changed, 0 insertions, 0 deletions