summaryrefslogtreecommitdiff
path: root/lib/mesa/src/hgl
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-11-22 02:43:27 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-11-22 02:43:27 +0000
commite3a07a4e68d0d97b1861db30e1ec5f90a573281b (patch)
tree32019ee1244f7b75e572fd54d870d59cde5725a3 /lib/mesa/src/hgl
parentd41b141680bb701643858a166cd72d49308bf9d2 (diff)
import Mesa 11.0.6
Diffstat (limited to 'lib/mesa/src/hgl')
-rw-r--r--lib/mesa/src/hgl/GLDispatcher.cpp8
-rw-r--r--lib/mesa/src/hgl/GLDispatcher.h4
2 files changed, 11 insertions, 1 deletions
diff --git a/lib/mesa/src/hgl/GLDispatcher.cpp b/lib/mesa/src/hgl/GLDispatcher.cpp
index f9709e444..a1e905361 100644
--- a/lib/mesa/src/hgl/GLDispatcher.cpp
+++ b/lib/mesa/src/hgl/GLDispatcher.cpp
@@ -58,6 +58,14 @@ BGLDispatcher::~BGLDispatcher()
status_t
+BGLDispatcher::CheckTable(const struct _glapi_table* table)
+{
+ _glapi_check_table(table ? table : _glapi_get_dispatch());
+ return B_OK;
+}
+
+
+status_t
BGLDispatcher::SetTable(struct _glapi_table* table)
{
_glapi_set_dispatch(table);
diff --git a/lib/mesa/src/hgl/GLDispatcher.h b/lib/mesa/src/hgl/GLDispatcher.h
index 7a4bcd332..7ee095d91 100644
--- a/lib/mesa/src/hgl/GLDispatcher.h
+++ b/lib/mesa/src/hgl/GLDispatcher.h
@@ -15,7 +15,7 @@
#include <GL/gl.h>
#include <SupportDefs.h>
-#include "main/glheader.h"
+#include "glheader.h"
#include "glapi/glapi.h"
@@ -34,6 +34,8 @@ class BGLDispatcher
void* CurrentContext();
struct _glapi_table* Table();
+ status_t CheckTable(
+ const struct _glapi_table* dispatch = NULL);
status_t SetTable(struct _glapi_table* dispatch);
uint32 TableSize();