]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
vid_sdl: make gl_driver GL-only
authoruis <uis9936@gmail.com>
Sun, 21 Jul 2024 21:44:06 +0000 (00:44 +0300)
committeruis <uis9936@gmail.com>
Sun, 21 Jul 2024 21:45:39 +0000 (00:45 +0300)
vid_sdl.c

index 681ba54059793ab5a5dbb6a194e6225adb1c30c9..b395806a74c7f9876a11d03a93d7ffab36841641 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -1855,7 +1855,9 @@ static qbool VID_InitModeGL(const viddef_mode_t *mode)
        Cvar_SetQuick(&gl_info_vendor, gl_vendor);
        Cvar_SetQuick(&gl_info_renderer, gl_renderer);
        Cvar_SetQuick(&gl_info_version, gl_version);
+       #ifndef USE_GLES2
        Cvar_SetQuick(&gl_info_driver, drivername ? drivername : "");
+       #endif
 
        for (i = 0; i < vid_info_displaycount.integer; ++i)
                Con_Printf("Display %i: %s\n", i, SDL_GetDisplayName(i));