summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i915/i915_vtbl.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@panoply-rh.(none)>2008-04-16 16:37:13 +1000
committerDave Airlie <airlied@panoply-rh.(none)>2008-04-16 16:37:13 +1000
commit96338dd1470bb088cbbe50d629cd30175245a784 (patch)
treec0a6c7fbad532d1798b81a4b39bc9cc5283ac456 /src/mesa/drivers/dri/i915/i915_vtbl.c
parent7cc7ff7051d427ff45b4d7d3664e2eecd13d0e13 (diff)
intel: fix _mesa_error ctx I introduced at lsat minute
Diffstat (limited to 'src/mesa/drivers/dri/i915/i915_vtbl.c')
-rw-r--r--src/mesa/drivers/dri/i915/i915_vtbl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_vtbl.c b/src/mesa/drivers/dri/i915/i915_vtbl.c
index 0f246513dd..5cf74d5906 100644
--- a/src/mesa/drivers/dri/i915/i915_vtbl.c
+++ b/src/mesa/drivers/dri/i915/i915_vtbl.c
@@ -43,6 +43,8 @@
#include "i915_reg.h"
#include "i915_context.h"
+#include "glapi.h"
+
static void
i915_render_prevalidate(struct intel_context *intel)
{
@@ -297,6 +299,7 @@ i915_emit_state(struct intel_context *intel)
int i;
int ret, count;
GLuint dirty;
+ GET_CURRENT_CONTEXT(ctx);
BATCH_LOCALS;
/* We don't hold the lock at this point, so want to make sure that