Created attachment 3124[details]
Use Sys_LoadDll to search in the local directory for the fallback default renderer.
When using USE_RENDERER_DLOPEN and specifying an unloadable cl_renderer cvar, the fallback opengl1 renderer fails to open. It seems it uses Sys_LoadLibrary instead of Sys_LoadDll. The former checks the PATH only, whereas the later checks the PATH and/or the current directory. Thus, it seems after talking to Thilo on the IRC channel, that it should be using Sys_LoadDll instead, which is what the attached patch does.
Created attachment 3124 [details] Use Sys_LoadDll to search in the local directory for the fallback default renderer. When using USE_RENDERER_DLOPEN and specifying an unloadable cl_renderer cvar, the fallback opengl1 renderer fails to open. It seems it uses Sys_LoadLibrary instead of Sys_LoadDll. The former checks the PATH only, whereas the later checks the PATH and/or the current directory. Thus, it seems after talking to Thilo on the IRC channel, that it should be using Sys_LoadDll instead, which is what the attached patch does.