wasm: fix setting translucent background
We need to set the requested SurfaceFormat which may contain the alphaBufferSize in order for the GL context to have the alpha attribute Fixes: QTBUG-77303 Change-Id: I39860e24de49a255ab7e73bca78af92e6c074d0d Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
4b1d370f75
commit
809a96d6d9
@ -694,7 +694,7 @@ void QWasmCompositor::frame()
|
|||||||
|
|
||||||
if (m_context.isNull()) {
|
if (m_context.isNull()) {
|
||||||
m_context.reset(new QOpenGLContext());
|
m_context.reset(new QOpenGLContext());
|
||||||
//mContext->setFormat(mScreen->format());
|
m_context->setFormat(someWindow->window()->requestedFormat());
|
||||||
m_context->setScreen(screen()->screen());
|
m_context->setScreen(screen()->screen());
|
||||||
m_context->create();
|
m_context->create();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user