diff --git a/README.md b/README.md index da03916..9cb1720 100644 --- a/README.md +++ b/README.md @@ -76,8 +76,6 @@ Variables labeled with `host` get their values from the host/server when their o | GL_VERSION_OVERRIDE | Digit.Digit | `host` | Override the OpenGL version on the client side. Available for both Windows and Linux clients. | | GLX_VERSION_OVERRIDE | Digit.Digit | 1.4 | Override the GLX version on the client side. Only available for Linux clients. | | GLSL_VERSION_OVERRIDE | Digit.Digit | 4.4 | Override the GLSL version on the client side. Available for both Windows and Linux clients. | -| GL_VENDOR_OVERRIDE | String | `host` | Override the vendor string on the client side. Available for both Windows and Linux clients. | -| GL_RENDERER_OVERRIDE | String | `host` | Override the renderer string on the client side. Available for both Windows and Linux clients. | | SGL_NET_OVER_SHARED | Ip:Port | | If networking is enabled, this environment variable must exist on the guest. Available for both Windows and Linux clients. | | SGL_RUN_WITH_LOW_PRIORITY | Boolean | true | On older CPUs, by setting the process priority to low / `IDLE_PRIORITY_CLASS`, applications will run smoother as the kernel driver is given more CPU time. This may not be needed on systems with newer CPUs. Only available for Windows clients. | diff --git a/src/client/glimpl.c b/src/client/glimpl.c index 64a6cc1..104232d 100644 --- a/src/client/glimpl.c +++ b/src/client/glimpl.c @@ -1295,24 +1295,8 @@ const GLubyte *glGetString(GLenum name) } } - char *gl_vendor_override = getenv("GL_VENDOR_OVERRIDE"); - char *gl_renderer_override = getenv("GL_RENDERER_OVERRIDE"); - - if (gl_vendor_override) { - if (strlen(gl_vendor_override) >= 256) - gl_vendor_override[256] = 0; - strcpy(real_vendor, gl_vendor_override); - } else { - real_glGetString(GL_VENDOR, real_vendor + 13); - } - - if (gl_renderer_override) { - if (strlen(gl_renderer_override) >= 256) - gl_renderer_override[256] = 0; - strcpy(real_renderer, gl_renderer_override); - } else { - real_glGetString(GL_RENDERER, real_renderer + 15); - } + real_glGetString(GL_VENDOR, real_vendor + 13); + real_glGetString(GL_RENDERER, real_renderer + 15); } switch (name) {