| diff --git a/.gitignore b/.gitignore |
| index d6c5c502b..d22bff565 100644 |
| \ No newline at end of file |
| diff --git a/framework/platform/lnx/X11/tcuLnxX11.cpp b/framework/platform/lnx/X11/tcuLnxX11.cpp |
| index dfe09d060..b4493e431 100644 |
| --- a/framework/platform/lnx/X11/tcuLnxX11.cpp |
| +++ b/framework/platform/lnx/X11/tcuLnxX11.cpp |
| #include "gluRenderConfig.hpp" |
| @@ -80,10 +81,14 @@ XlibDisplay::XlibDisplay (EventState& eventState, const char* name) |
| // a multi-threaded program calls, and it must complete before any other |
| DE_CHECK_RUNTIME_ERR(XInitThreads() != 0); |
| - m_display = XOpenDisplay((char*)name); // Won't modify argument string. |
| + for (int i = 0; i < 10; i++) { |
| + m_display = XOpenDisplay((char*)name); // Won't modify argument string. |
| throw ResourceError("Failed to open display", name, __FILE__, __LINE__); |
| m_deleteAtom = XInternAtom(m_display, "WM_DELETE_WINDOW", False); |