diff options
author | Brian Paul <[email protected]> | 2009-01-29 15:40:21 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-01-30 16:03:32 -0700 |
commit | 4b37b1129ea7fed915d353c39d4b74dbdbb7f0a5 (patch) | |
tree | a81c5f0f6485505534c4fff83063c0ea1871eb55 /src | |
parent | 9d6880ec8d4c13540452a8208ca69a58a3f8459d (diff) |
i915: updated render to texture/fbo test
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i915/i915_state.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_state.c b/src/mesa/drivers/dri/i915/i915_state.c index ecb763e1277..814fb59fd34 100644 --- a/src/mesa/drivers/dri/i915/i915_state.c +++ b/src/mesa/drivers/dri/i915/i915_state.c @@ -321,18 +321,9 @@ intelCalcViewport(GLcontext * ctx) if (ctx->DrawBuffer->Name) { /* User created FBO */ - struct intel_renderbuffer *irb - = intel_renderbuffer(ctx->DrawBuffer->_ColorDrawBuffers[0]); - if (irb && !irb->RenderToTexture) { - /* y=0=top */ - yScale = -1.0; - yBias = irb->Base.Height; - } - else { - /* y=0=bottom */ - yScale = 1.0; - yBias = 0.0; - } + /* y=0=bottom */ + yScale = 1.0; + yBias = 0.0; } else { /* window buffer, y=0=top */ |