gallium: fix render to depth texture

This commit is contained in:
Brian Paul 2008-05-08 17:42:18 -06:00
parent a7e8e31eee
commit 2f07e1caa0
1 changed files with 5 additions and 0 deletions

View File

@ -127,6 +127,11 @@ update_framebuffer_state( struct st_context *st )
strb = st_renderbuffer(fb->Attachment[BUFFER_DEPTH].Renderbuffer);
if (strb) {
strb = st_renderbuffer(strb->Base.Wrapped);
if (strb->rtt) {
/* rendering to a GL texture, may have to update surface */
update_renderbuffer_surface(st, strb);
}
assert(strb->surface);
framebuffer->zsbuf = strb->surface;
}