mesa/st: Fix assertions.
Can't access ptDraw before it is written.
This commit is contained in:
parent
c3dd8c358c
commit
23c6b8f2ed
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue