From e40fdf19abd4fe6d8f3a31088671bfc1c4aa03cc Mon Sep 17 00:00:00 2001 From: Even Oscar Andersen Date: Tue, 25 Jun 2024 11:51:47 +0200 Subject: wasm: hellogl2 screen is black We need to reset the OpenGL state in paintGL for the drawing to work, Also, disable the dock/add window functionality as it does not work on webassembly. Change-Id: I480d944bc2029a07d5d49f0a85c3754fbc8cd53c Reviewed-by: Lorn Potter --- examples/opengl/hellogl2/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/opengl/hellogl2/main.cpp') diff --git a/examples/opengl/hellogl2/main.cpp b/examples/opengl/hellogl2/main.cpp index 6ecd4cfe1a0..a355d992840 100644 --- a/examples/opengl/hellogl2/main.cpp +++ b/examples/opengl/hellogl2/main.cpp @@ -42,6 +42,7 @@ int main(int argc, char *argv[]) MainWindow mainWindow; + // Note: Transparency does not work for wasm GLWidget::setTransparent(parser.isSet(transparentOption)); if (GLWidget::isTransparent()) { mainWindow.setAttribute(Qt::WA_TranslucentBackground); -- cgit v1.2.3