mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix warning
This commit is contained in:
parent
004f317aba
commit
4d8700ccb7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue