llvmpipe: additional texture assertion

This commit is contained in:
Brian Paul 2010-04-15 17:41:39 -06:00
parent 8ba14fab9a
commit 7d5da2370b
1 changed files with 4 additions and 0 deletions

View File

@ -200,6 +200,10 @@ llvmpipe_resource_create(struct pipe_screen *_screen,
goto fail;
}
if (resource_is_texture(&lpt->base)) {
assert(lpt->layout[0][0]);
}
lpt->id = id_counter++;
return &lpt->base;