projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d6880e
)
i915: updated render to texture/fbo test
author
Brian Paul
<brianp@vmware.com>
Thu, 29 Jan 2009 22:40:21 +0000
(15:40 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 30 Jan 2009 23:03:32 +0000
(16:03 -0700)
src/mesa/drivers/dri/i915/i915_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i915/i915_state.c
b/src/mesa/drivers/dri/i915/i915_state.c
index ecb763e12777f233581263e4e7945d7d5ffb8b44..814fb59fd3490291834529f76001558872eff099 100644
(file)
--- 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 */