diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-05-02 11:53:52 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-05-03 13:22:21 +0200 |
commit | c5e0c2e3f869b53fa4e53e1c4deb401d79db08de (patch) | |
tree | c436b06d606da18d3d7b704de9f6a5359475fc9e /src/gui | |
parent | 14458cc59b298e4449183e0dcc72ffc73bc2c8f8 (diff) | |
download | qtbase-c5e0c2e3f869b53fa4e53e1c4deb401d79db08de.tar.gz |
rhi: gl: Skip useless glEnable for point sprites in core profiles
Might fail with invalid enum in core profile contexts. The behavior
is the same regardless.
Pick-to: 6.5 6.2
Fixes: QTBUG-113289
Change-Id: I5e5764494be3c5f37537f5f9b3b5311d9c49def4
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/rhi/qrhigles2.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/rhi/qrhigles2.cpp b/src/gui/rhi/qrhigles2.cpp index 666395437a..d0a0c0a870 100644 --- a/src/gui/rhi/qrhigles2.cpp +++ b/src/gui/rhi/qrhigles2.cpp @@ -956,7 +956,8 @@ bool QRhiGles2::create(QRhi::Flags flags) if (!caps.gles) { f->glEnable(GL_VERTEX_PROGRAM_POINT_SIZE); - f->glEnable(GL_POINT_SPRITE); + if (!caps.coreProfile) + f->glEnable(GL_POINT_SPRITE); } // else (with gles) these are always on // Match D3D and others when it comes to seamless cubemap filtering. |