Merge pull request #2797 from Cacodemon345/qt-hardware-renderer

qt: display at initialization time (update() call doesn't work there)
This commit is contained in:
Miran Grča
2022-11-03 16:29:33 +01:00
committed by GitHub

View File

@@ -140,7 +140,8 @@ void HardwareRenderer::initializeGL()
pclog("OpenGL shader language version: %s\n", glGetString(GL_SHADING_LANGUAGE_VERSION));
glClearColor(0, 0, 0, 1);
m_texture->setWrapMode(QOpenGLTexture::ClampToEdge);
update();
glClear(GL_COLOR_BUFFER_BIT);
m_context->swapBuffers(this);
}
void HardwareRenderer::paintGL() {