mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-08 05:11:32 +00:00
Add experimental wayland support. Refs #853
* This is only lightly tested and may break heavily. It is disabled by default and must be explicitly enabled. * In particular this is only known to work for Wayland use at capture time. Wayland on replay is still unsupported. Known issues include: EGL pbuffer surfaces are not implemented on Wayland, Wayland cannot get window dimensions, and there are hangs/failures with GL and vulkan presentation with Wayland.
This commit is contained in:
48 files changed
+1051
-185
No files matched your search
@@ -358,6 +358,20 @@ int main(int argc, char *argv[])
|
||||
GlobalEnvironment env;
|
||||
#if defined(RENDERDOC_PLATFORM_LINUX)
|
||||
env.xlibDisplay = QX11Info::display();
|
||||
if(QGuiApplication::platformName() == lit("wayland"))
|
||||
{
|
||||
env.waylandDisplay = (wl_display *)AccessWaylandPlatformInterface("display", NULL);
|
||||
|
||||
QString warning =
|
||||
tr("Running directly on Wayland is NOT SUPPORTED and is likely to crash, hang, or "
|
||||
"fail to render.");
|
||||
|
||||
qInfo() << "------ !!!! WARNING !!!! ------";
|
||||
qInfo() << warning;
|
||||
qInfo() << "------ !!!! WARNING !!!! ------";
|
||||
|
||||
RDDialog::critical(NULL, tr("Wayland Qt platform not supported"), warning);
|
||||
}
|
||||
#endif
|
||||
rdcarray<rdcstr> coreargs;
|
||||
if(!crashReportPath.isEmpty())
|
||||
|
||||
Reference in new issue
Block a user