Fix missing GLX_CONTEXT_OPENGL_NO_ERROR_ARB token
authorPiotr Byszewski <piotr.byszewski@mobica.com>
Wed, 19 Jul 2017 12:13:05 +0000 (14:13 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 19 Jul 2017 14:53:18 +0000 (10:53 -0400)
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

index 8714c34..0194772 100644 (file)
 #define GLX_GLXEXT_PROTOTYPES
 #include <GL/glx.h>
 
+#ifndef GLX_CONTEXT_OPENGL_NO_ERROR_ARB
+#define GLX_CONTEXT_OPENGL_NO_ERROR_ARB 0x31B3
+#endif
+
 namespace tcu
 {
 namespace lnx