mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
glx: Inline a few single-use constant strings into their user
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20549>
This commit is contained in:
parent
07292d6e76
commit
86c9a31d99
1 changed files with 3 additions and 6 deletions
|
|
@ -33,9 +33,6 @@
|
|||
#include <xcb/glx.h>
|
||||
#include "GL/mesa_glinterop.h"
|
||||
|
||||
static const char __glXGLXClientVendorName[] = "Mesa Project and SGI";
|
||||
static const char __glXGLXClientVersion[] = "1.4";
|
||||
|
||||
#if defined(GLX_DIRECT_RENDERING) && !defined(GLX_USE_APPLEGL)
|
||||
|
||||
/**
|
||||
|
|
@ -1161,11 +1158,11 @@ glXGetClientString(Display * dpy, int name)
|
|||
|
||||
switch (name) {
|
||||
case GLX_VENDOR:
|
||||
return (__glXGLXClientVendorName);
|
||||
return "Mesa Project and SGI";
|
||||
case GLX_VERSION:
|
||||
return (__glXGLXClientVersion);
|
||||
return "1.4";
|
||||
case GLX_EXTENSIONS:
|
||||
return (__glXGetClientExtensions(dpy));
|
||||
return __glXGetClientExtensions(dpy);
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue