Skip to content

Commit 394382c

Browse files
author
Paul Gofman
committed
kernelbase: HACK: Try harder to force GL QtWebEngine rendering for EADesktop.
CW-Bug-Id: #22640
1 parent ca4e8d6 commit 394382c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

dlls/kernelbase/process.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1925,6 +1925,16 @@ BOOL WINAPI DECLSPEC_HOTPATCH SetEnvironmentVariableW( LPCWSTR name, LPCWSTR val
19251925
len = lstrlenW(names[i]);
19261926
if (size > len && !memcmp( module + size - len, names[i], len * sizeof(*module) ))
19271927
{
1928+
HMODULE h = GetModuleHandleW(L"Qt5Core.dll");
1929+
void (WINAPI *QCoreApplication_setAttribute)(int attr, BOOL set);
1930+
1931+
QCoreApplication_setAttribute = (void *)GetProcAddress(h, "?setAttribute@QCoreApplication@@SAXW4ApplicationAttribute@Qt@@_N@Z");
1932+
if (QCoreApplication_setAttribute)
1933+
{
1934+
QCoreApplication_setAttribute(16 /* AA_UseOpenGLES */, 0);
1935+
QCoreApplication_setAttribute(15 /* AA_UseDesktopOpenGL */, 1);
1936+
}
1937+
else ERR("QCoreApplication_setAttribute not found, h %p.\n", h);
19281938
value = L"desktop";
19291939
FIXME( "HACK: setting QT_OPENGL=desktop.\n" );
19301940
break;

0 commit comments

Comments
 (0)