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>
This commit is contained in:
Laszlo Agocs 2023-05-02 11:53:52 +02:00
parent 14458cc59b
commit c5e0c2e3f8

View File

@ -956,6 +956,7 @@ bool QRhiGles2::create(QRhi::Flags flags)
if (!caps.gles) {
f->glEnable(GL_VERTEX_PROGRAM_POINT_SIZE);
if (!caps.coreProfile)
f->glEnable(GL_POINT_SPRITE);
} // else (with gles) these are always on