mesa/st: Fix assertions.

Can't access ptDraw before it is written.
This commit is contained in:
José Fonseca 2012-10-12 17:02:55 +01:00
parent c3dd8c358c
commit 23c6b8f2ed
1 changed files with 2 additions and 2 deletions

View File

@ -1241,8 +1241,8 @@ copy_stencil_pixels(struct gl_context *ctx, GLint srcx, GLint srcy,
dsty = rbDraw->Base.Height - dsty - height;
}
assert(util_format_get_blockwidth(ptDraw->resource->format) == 1);
assert(util_format_get_blockheight(ptDraw->resource->format) == 1);
assert(util_format_get_blockwidth(rbDraw->texture->format) == 1);
assert(util_format_get_blockheight(rbDraw->texture->format) == 1);
/* map the stencil buffer */
drawMap = pipe_transfer_map(pipe,