Fix dumb build errors.
I always build with -DGLX_USE_TLS, so I never hit these paths. glapi.h is required in some places because _glapi_Dispatch is declared there, but _glapi_tls_Dispatch is declared in glthread.h.
This commit is contained in:
@@ -37,6 +37,7 @@
|
|||||||
#include "packsingle.h"
|
#include "packsingle.h"
|
||||||
#include "indirect.h"
|
#include "indirect.h"
|
||||||
#include "dispatch.h"
|
#include "dispatch.h"
|
||||||
|
#include "glapi.h"
|
||||||
#include "glthread.h"
|
#include "glthread.h"
|
||||||
#include "glapioffsets.h"
|
#include "glapioffsets.h"
|
||||||
#include <GL/glxproto.h>
|
#include <GL/glxproto.h>
|
||||||
|
@@ -433,7 +433,7 @@ get_static_proc_address(const char *funcName)
|
|||||||
#if defined(DISPATCH_FUNCTION_SIZE) && defined(GLX_INDIRECT_RENDERING)
|
#if defined(DISPATCH_FUNCTION_SIZE) && defined(GLX_INDIRECT_RENDERING)
|
||||||
return (f->Address == NULL)
|
return (f->Address == NULL)
|
||||||
? (_glapi_proc) (gl_dispatch_functions_start
|
? (_glapi_proc) (gl_dispatch_functions_start
|
||||||
+ (DISPATCH_FUNCTION_SIZE * f->Offset));
|
+ (DISPATCH_FUNCTION_SIZE * f->Offset))
|
||||||
: f->Address;
|
: f->Address;
|
||||||
#elif defined(DISPATCH_FUNCTION_SIZE)
|
#elif defined(DISPATCH_FUNCTION_SIZE)
|
||||||
return (_glapi_proc) (gl_dispatch_functions_start
|
return (_glapi_proc) (gl_dispatch_functions_start
|
||||||
|
Reference in New Issue
Block a user