[Mesa-dev] [PATCH 1/1] st/mesa: Handle wrapped depth buffers in st_copy_texsubimage().
Brian Paul
brianp at vmware.com
Thu Dec 30 07:28:55 PST 2010
On 12/22/2010 12:30 AM, Henri Verbeet wrote:
> ---
> src/mesa/state_tracker/st_cb_texture.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
> index 866426a..14d33f7 100644
> --- a/src/mesa/state_tracker/st_cb_texture.c
> +++ b/src/mesa/state_tracker/st_cb_texture.c
> @@ -1528,6 +1528,9 @@ st_copy_texsubimage(struct gl_context *ctx,
> if (texBaseFormat == GL_DEPTH_COMPONENT ||
> texBaseFormat == GL_DEPTH_STENCIL) {
> strb = st_renderbuffer(fb->_DepthBuffer);
> + if (strb->Base.Wrapped) {
> + strb = st_renderbuffer(strb->Base.Wrapped);
> + }
> }
> else {
> /* texBaseFormat == GL_RGB, GL_RGBA, GL_ALPHA, etc */
Looks good. Please cherry-pick to the 7.9 and 7.10 branches too.
-Brian
More information about the mesa-dev
mailing list