From a5198275fa14e2a4ee84161692c4f537078f4500 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 24 Oct 2021 14:46:38 +0900 Subject: [PATCH] internal/graphicsdriver/opengl/gl: Remove an unused file --- .../graphicsdriver/opengl/gl/package_x.go | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 internal/graphicsdriver/opengl/gl/package_x.go 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()) -}