Skip to content

Commit

Permalink
[WebGL] Disable pre-multiplied alpha in WebGL context.
Browse files Browse the repository at this point in the history
This fixes synchronization issues on older Intel Macs.
  • Loading branch information
LukasBanana committed Aug 27, 2024
1 parent 0186a1d commit 2c86d93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/Renderer/OpenGL/Platform/Wasm/WasmGLContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void WasmGLContext::CreateContext(const GLPixelFormat& pixelFormat, const Render
attrs.depth = true;//(pixelFormat.depthBits > 0);
attrs.stencil = true;//(pixelFormat.stencilBits > 0);
attrs.antialias = true;//(pixelFormat.samples > 1);
attrs.premultipliedAlpha = true;
attrs.premultipliedAlpha = false;
attrs.preserveDrawingBuffer = false;
attrs.explicitSwapControl = 0;
attrs.failIfMajorPerformanceCaveat = false;
Expand Down

0 comments on commit 2c86d93

Please sign in to comment.