From a469c7288d67829fd70a9266835e0748bf904d81 Mon Sep 17 00:00:00 2001 From: Piotr Byszewski Date: Wed, 19 Jul 2017 14:13:05 +0200 Subject: [PATCH] Fix missing GLX_CONTEXT_OPENGL_NO_ERROR_ARB token This change resolve compilation error that occurred when glxext header is too old and does not contain required define. Components: Framework VK-GL-CTS issue: 581 Change-Id: Ifdb37f3921dceec0ea4d9f048aa1e8ac92826889 --- framework/platform/lnx/X11/tcuLnxX11GlxPlatform.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/framework/platform/lnx/X11/tcuLnxX11GlxPlatform.cpp b/framework/platform/lnx/X11/tcuLnxX11GlxPlatform.cpp index 8714c34..0194772 100644 --- a/framework/platform/lnx/X11/tcuLnxX11GlxPlatform.cpp +++ b/framework/platform/lnx/X11/tcuLnxX11GlxPlatform.cpp @@ -35,6 +35,10 @@ #define GLX_GLXEXT_PROTOTYPES #include +#ifndef GLX_CONTEXT_OPENGL_NO_ERROR_ARB +#define GLX_CONTEXT_OPENGL_NO_ERROR_ARB 0x31B3 +#endif + namespace tcu { namespace lnx -- 2.7.4