diff --git a/internal/graphicsdriver/opengl/gl/package_x.go b/internal/graphicsdriver/opengl/gl/package_x.go deleted file mode 100644 index 1e19625cb..000000000 --- a/internal/graphicsdriver/opengl/gl/package_x.go +++ /dev/null @@ -1,35 +0,0 @@ -// SPDX-License-Identifier: MIT - -//go:build freebsd || linux -// +build freebsd linux - -package gl - -// #include -// -// static const char* RendererDeviceString() { -// #ifdef GLX_MESA_query_renderer -// static PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC queryString; -// if (!queryString) { -// queryString = (PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC) -// glXGetProcAddressARB((const GLubyte *)"glXQueryCurrentRendererStringMESA"); -// } -// if (!queryString) { -// return ""; -// } -// -// static const char* rendererDevice; -// if (!rendererDevice) { -// rendererDevice = queryString(GLX_RENDERER_DEVICE_ID_MESA); -// } -// -// return rendererDevice; -// #else -// return ""; -// #endif -// } -import "C" - -func RendererDeviceString() string { - return C.GoString(C.RendererDeviceString()) -}