Bug 5485 - DLOpen renderer fallback doesn't work.
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Video
Version: GIT MASTER
Hardware: PC Linux
: P3 minor
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2012-04-02 17:15 EDT by Harley Laue
Modified: 2012-04-04 13:21:59 EDT
1 user (show)

See Also:


Attachments
Use Sys_LoadDll to search in the local directory for the fallback default renderer. (428 bytes, patch)
2012-04-02 17:15 EDT, Harley Laue

Description Harley Laue 2012-04-02 17:15:29 EDT
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.
Comment 1 Zack Middleton 2012-04-04 13:21:59 EDT
Applied in r2234, thanks.