Skip to content

Commit 01c7f5b

Browse files
SampleApp: disable canvas alpha-blending on Web
1 parent 85c4cd5 commit 01c7f5b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SampleBase/src/SampleApp.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ void SampleApp::InitializeDiligentEngine(const NativeWindow* pWindow)
344344
EngineCI.Window = *pWindow;
345345

346346
# if PLATFORM_EMSCRIPTEN
347+
EngineCI.WebGLAttribs.Alpha = false;
347348
EngineCI.WebGLAttribs.PowerPreference = WEBGL_POWER_PREFERENCE_HIGH_PERFORMANCE;
348349
# endif
349350
if (m_ValidationLevel >= 0)

0 commit comments

Comments
 (0)