qt: display at initialization time (update() call doesn't work there)

This commit is contained in:
Cacodemon345
2022-11-03 21:05:47 +06:00
parent 5929e06a3b
commit 7928093c2b

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() {