head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.11.23.10.29.52; author adam; state Exp; branches; next ; commitid iRvtCaPzqXxxxz4H; desc @@ 1.1 log @mesa: added version 26.2.7 The Mesa project began as an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics. Over the years the project has grown to implement more graphics APIs, including OpenGL ES (versions 1, 2, 3), OpenCL, OpenMAX, VDPAU, VA API, XvMC and Vulkan. A variety of device drivers allows the Mesa libraries to be used in many different environments ranging from software emulation to complete hardware acceleration for modern GPUs. @ text @$NetBSD: patch-src_glx_glxclient.h,v 1.3 2022/03/13 15:50:05 tnn Exp $ NetBSD only supports zero-initialized initial-exec tls variables in conjuction with dlopen(3) at the moment. --- src/glx/glxclient.h.orig 2025-01-22 18:12:23.000000000 +0000 +++ src/glx/glxclient.h @@@@ -648,7 +648,11 @@@@ extern void __glXSetCurrentContext(struc extern __THREAD_INITIAL_EXEC void *__glX_tls_Context; +#if defined(__NetBSD__) +# define __glXGetCurrentContext() (likely(__glX_tls_Context) ? __glX_tls_Context : (void*)&dummyContext) +#else # define __glXGetCurrentContext() __glX_tls_Context +#endif extern void __glXSetCurrentContextNull(void); @