summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@vmware.com>2009-01-15 11:53:59 +0000
committerAlan Hourihane <alanh@vmware.com>2009-01-15 11:53:59 +0000
commit8708fa11745bbe479f6315831a040f3ad9e4c90a (patch)
tree9757e9a70ef6e40f44046ca66e639ba4c75142e3 /src
parent263b96e160606975285154c4b8b610fcb8f4c930 (diff)
mesa: revert partial commit for 0x0 render targets
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_atom_framebuffer.c9
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 e14f55681c..ca1a719a9a 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++) {