glx: Untangle the prototypes around the GetProcAddress thunk
Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
parent
c1fd143f28
commit
47f00b3920
|
@ -544,10 +544,10 @@ __glXleaveServer(GLboolean rendering)
|
|||
glxServerLeaveCount++;
|
||||
}
|
||||
|
||||
static void (*(*_get_proc_address)(const char *))(void);
|
||||
static glx_gpa_proc _get_proc_address;
|
||||
|
||||
void
|
||||
__glXsetGetProcAddress(void (*(*get_proc_address) (const char *))(void))
|
||||
__glXsetGetProcAddress(glx_gpa_proc get_proc_address)
|
||||
{
|
||||
_get_proc_address = get_proc_address;
|
||||
}
|
||||
|
|
|
@ -117,7 +117,9 @@ void __glXleaveServer(GLboolean rendering);
|
|||
void glxSuspendClients(void);
|
||||
void glxResumeClients(void);
|
||||
|
||||
void __glXsetGetProcAddress(void (*(*get_proc_address) (const char *)) (void));
|
||||
typedef void (*glx_func_ptr)(void);
|
||||
typedef glx_func_ptr (*glx_gpa_proc)(const char *);
|
||||
void __glXsetGetProcAddress(glx_gpa_proc get_proc_address);
|
||||
void *__glGetProcAddress(const char *);
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue
Block a user