mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix proxy context creation on Nvidia (fixes #2746)
This commit is contained in:
parent
27076733d4
commit
1127cf8b84
|
@ -425,10 +425,10 @@ void DisplayGL::setVideoProxy(std::shared_ptr<VideoProxy> proxy) {
|
||||||
|
|
||||||
void DisplayGL::setupProxyThread() {
|
void DisplayGL::setupProxyThread() {
|
||||||
m_proxyContext->moveToThread(&m_proxyThread);
|
m_proxyContext->moveToThread(&m_proxyThread);
|
||||||
|
m_proxySurface.create();
|
||||||
connect(&m_proxyThread, &QThread::started, m_proxyContext.get(), [this]() {
|
connect(&m_proxyThread, &QThread::started, m_proxyContext.get(), [this]() {
|
||||||
m_proxyContext->setShareContext(m_painter->shareContext());
|
m_proxyContext->setShareContext(m_painter->shareContext());
|
||||||
m_proxyContext->create();
|
m_proxyContext->create();
|
||||||
m_proxySurface.create();
|
|
||||||
m_proxyContext->makeCurrent(&m_proxySurface);
|
m_proxyContext->makeCurrent(&m_proxySurface);
|
||||||
#if defined(_WIN32) && defined(USE_EPOXY)
|
#if defined(_WIN32) && defined(USE_EPOXY)
|
||||||
epoxy_handle_external_wglMakeCurrent();
|
epoxy_handle_external_wglMakeCurrent();
|
||||||
|
@ -576,6 +576,7 @@ void PainterGL::create() {
|
||||||
m_backend->filter = false;
|
m_backend->filter = false;
|
||||||
m_backend->lockAspectRatio = false;
|
m_backend->lockAspectRatio = false;
|
||||||
m_backend->interframeBlending = false;
|
m_backend->interframeBlending = false;
|
||||||
|
m_gl->doneCurrent();
|
||||||
|
|
||||||
emit created();
|
emit created();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue