[quake2] Performance issue fixed, problem found

Brendan Burns brendanburns at attbi.com
Fri Jun 28 15:51:45 EDT 2002

sorry it took me a while to get back to you on this one.

vid_so sets up the reference to the dynamically loaded function
RW_Sys_GetClipboardData which is in the video driver (in this case
rw_x11.c)  Basically the on initialization, the game code sets
RW_Sys_GetClipboardData_fp to point to the location of the dynamic
function in the ref_[glx,softx].so, then when the game code calls
Sys_GetClipboardData, that function in turn calls
RW_Sys_GetClipboardData_fp which points to RW_Sys_GetClipboardData in

aren't dynamic libraries fun ;-P

basically its a form of indirection.


On Fri, 2002-06-28 at 08:15, Vincent Cojot wrote:
> Brendan,
> I'm porting over some changes/fixes from the linux code to the Solaris
> code.. What's the purpose of RW_Sys_GetClipboardData_fp in vid_so.c? Is it
> used only for passing the name of the .so library? I read the code but still
> the reason evades me since we already have Sys_GetClipboardData..? Or is it
> to preserver Sys_GetClipboardData that RW_Sys_GetClipboardData gets used?
> Puzzled here...
> Vincent

More information about the quake2 mailing list