Преглед изворни кода

st/mesa: CopyTex(Sub)Image should not be killed by conditional rendering

NOTE: This is a candidate for the 7.10 branch.

Reviewed-by: Brian Paul <brianp@vmware.com>
tags/mesa-7.11-rc1
Marek Olšák пре 14 година
родитељ
комит
91e56c8897
1 измењених фајлова са 12 додато и 0 уклоњено
  1. 12
    0
      src/mesa/state_tracker/st_cb_texture.c

+ 12
- 0
src/mesa/state_tracker/st_cb_texture.c Прегледај датотеку

@@ -1556,6 +1556,11 @@ st_copy_texsubimage(struct gl_context *ctx,
srcY1 = srcY0 + height;
}

/* Disable conditional rendering. */
if (st->render_condition) {
pipe->render_condition(pipe, NULL, 0);
}

util_blit_pixels_writemask(st->blit,
strb->texture,
strb->surface->u.tex.level,
@@ -1567,6 +1572,13 @@ st_copy_texsubimage(struct gl_context *ctx,
destX + width, destY + height,
0.0, PIPE_TEX_MIPFILTER_NEAREST,
format_writemask);

/* Restore conditional rendering state. */
if (st->render_condition) {
pipe->render_condition(pipe, st->render_condition,
st->condition_mode);
}

use_fallback = GL_FALSE;
}


Loading…
Откажи
Сачувај