Qt: Fix warning

This commit is contained in:
Vicki Pfau 2022-07-14 23:11:10 -07:00
parent 004f317aba
commit 4d8700ccb7
1 changed files with 1 additions and 2 deletions

View File

@ -457,8 +457,7 @@ void PainterGL::create() {
m_paintDev = std::make_unique<QOpenGLPaintDevice>();
#if defined(BUILD_GLES2) || defined(BUILD_GLES3)
auto version = m_format.version();
if (version >= qMakePair(2, 0)) {
if (m_supportsShaders) {
gl2Backend = static_cast<mGLES2Context*>(malloc(sizeof(mGLES2Context)));
mGLES2ContextCreate(gl2Backend);
m_backend = &gl2Backend->d;