summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/glx/x11/singlepix.c1
-rw-r--r--src/mesa/glapi/glapi.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/glx/x11/singlepix.c b/src/glx/x11/singlepix.c
index 5eeb4cedab3..a7b5b798707 100644
--- a/src/glx/x11/singlepix.c
+++ b/src/glx/x11/singlepix.c
@@ -37,6 +37,7 @@
#include "packsingle.h"
#include "indirect.h"
#include "dispatch.h"
+#include "glapi.h"
#include "glthread.h"
#include "glapioffsets.h"
#include <GL/glxproto.h>
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c
index be5a7fe6bab..d1ccc5fba69 100644
--- a/src/mesa/glapi/glapi.c
+++ b/src/mesa/glapi/glapi.c
@@ -433,7 +433,7 @@ get_static_proc_address(const char *funcName)
#if defined(DISPATCH_FUNCTION_SIZE) && defined(GLX_INDIRECT_RENDERING)
return (f->Address == NULL)
? (_glapi_proc) (gl_dispatch_functions_start
- + (DISPATCH_FUNCTION_SIZE * f->Offset));
+ + (DISPATCH_FUNCTION_SIZE * f->Offset))
: f->Address;
#elif defined(DISPATCH_FUNCTION_SIZE)
return (_glapi_proc) (gl_dispatch_functions_start