aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i915/i915_state.c
diff options
context:
space:
mode:
authorKristian Høgsberg <[email protected]>2010-03-30 14:32:10 -0400
committerKristian Høgsberg <[email protected]>2010-03-30 16:48:51 -0400
commitff6bce552a1522160c64d10677a36a7ad6cf5f88 (patch)
tree3d0ec1d7b544d87d076e13c27cc5aa46c841a48f /src/mesa/drivers/dri/i915/i915_state.c
parent581c773e81cdc467be2d09a0ccd76c0de3cba529 (diff)
intel: Remove redundant fields from struct intel_context
All these pointers are in the __DRIcontext struct, which we point to.
Diffstat (limited to 'src/mesa/drivers/dri/i915/i915_state.c')
-rw-r--r--src/mesa/drivers/dri/i915/i915_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_state.c b/src/mesa/drivers/dri/i915/i915_state.c
index 7275617a6fb..91b228d52b9 100644
--- a/src/mesa/drivers/dri/i915/i915_state.c
+++ b/src/mesa/drivers/dri/i915/i915_state.c
@@ -374,7 +374,7 @@ intelCalcViewport(GLcontext * ctx)
else {
/* window buffer, y=0=top */
yScale = -1.0;
- yBias = (intel->driDrawable) ? intel->driDrawable->h : 0.0F;
+ yBias = ctx->DrawBuffer->Height;
}
m[MAT_SX] = v[MAT_SX];