mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
i915: updated render to texture/fbo test
This commit is contained in:
parent
9d6880ec8d
commit
4b37b1129e
1 changed files with 3 additions and 12 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue