Mesa (gallium-0.2): mesa: revert partial commit for 0x0 render targets

Alan Hourihane alanh at kemper.freedesktop.org
Thu Jan 15 11:55:12 UTC 2009


Module: Mesa
Branch: gallium-0.2
Commit: 8708fa11745bbe479f6315831a040f3ad9e4c90a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8708fa11745bbe479f6315831a040f3ad9e4c90a

Author: Alan Hourihane <alanh at vmware.com>
Date:   Thu Jan 15 11:53:59 2009 +0000

mesa: revert partial commit for 0x0 render targets

---

 src/mesa/state_tracker/st_atom_framebuffer.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/mesa/state_tracker/st_atom_framebuffer.c b/src/mesa/state_tracker/st_atom_framebuffer.c
index e14f556..ca1a719 100644
--- a/src/mesa/state_tracker/st_atom_framebuffer.c
+++ b/src/mesa/state_tracker/st_atom_framebuffer.c
@@ -55,11 +55,10 @@ update_renderbuffer_surface(struct st_context *st,
    int rtt_width = strb->Base.Width;
    int rtt_height = strb->Base.Height;
 
-   if (texture &&
-       (!strb->surface ||
-        strb->surface->texture != texture ||
-        strb->surface->width != rtt_width ||
-        strb->surface->height != rtt_height)) {
+   if (!strb->surface ||
+       strb->surface->texture != texture ||
+       strb->surface->width != rtt_width ||
+       strb->surface->height != rtt_height) {
       GLuint level;
       /* find matching mipmap level size */
       for (level = 0; level <= texture->last_level; level++) {




More information about the mesa-commit mailing list