mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
gallium: added some assertions to st_render_texture() to check surface format
Make sure we can really render to the texture surface given its format.
This commit is contained in:
parent
cc94863429
commit
dd9dc7df80
1 changed files with 2 additions and 0 deletions
|
|
@ -370,6 +370,8 @@ st_render_texture(GLcontext *ctx,
|
|||
att->TextureLevel,
|
||||
att->Zoffset);
|
||||
assert(strb->surface);
|
||||
assert(screen->is_format_supported(screen, strb->surface->format, PIPE_TEXTURE));
|
||||
assert(screen->is_format_supported(screen, strb->surface->format, PIPE_SURFACE));
|
||||
|
||||
init_renderbuffer_bits(strb, pt->format);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue