summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-11-05 17:10:12 -0700
committerBrian <brian.paul@tungstengraphics.com>2007-11-05 17:10:12 -0700
commitd31d93f4776fd19738a607eda337f9d3e88c5c93 (patch)
tree46f11c80435de242a3ee21bc59f75ab108c35b2d /src
parentcadaa4330e9472be07d07fc994dfb9c5107202d7 (diff)
change includes, minor simplification in intelDisplaySurface()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/intel_winsys/intel_swapbuffers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/intel_winsys/intel_swapbuffers.c b/src/mesa/drivers/dri/intel_winsys/intel_swapbuffers.c
index 8a35a71669..8e0f1113b8 100644
--- a/src/mesa/drivers/dri/intel_winsys/intel_swapbuffers.c
+++ b/src/mesa/drivers/dri/intel_winsys/intel_swapbuffers.c
@@ -85,14 +85,14 @@ intelDisplaySurface(__DRIdrawablePrivate *dPriv,
struct pipe_surface *surf,
const drm_clip_rect_t *rect)
{
+ struct intel_screen *intelScreen = intel_screen(dPriv->driScreenPriv);
struct intel_context *intel;
- const struct intel_screen *intelScreen = intel_screen(dPriv->driScreenPriv);
DBG(SWAP, "%s\n", __FUNCTION__);
assert(dPriv);
- intel = intelScreenContext(dPriv->driScreenPriv->private);
+ intel = intelScreenContext(intelScreen);
if (!intel)
return;