mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 05:00:32 +01:00
mesa: replace assertion with no-op function assignment
This commit is contained in:
parent
964792b025
commit
f0339f502c
1 changed files with 12 additions and 1 deletions
|
|
@ -397,6 +397,14 @@ texture_put_mono_values(GLcontext *ctx, struct gl_renderbuffer *rb,
|
|||
}
|
||||
|
||||
|
||||
static void
|
||||
store_nop(struct gl_texture_image *texImage,
|
||||
GLint col, GLint row, GLint img,
|
||||
const void *texel)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
delete_texture_wrapper(struct gl_renderbuffer *rb)
|
||||
{
|
||||
|
|
@ -462,7 +470,10 @@ update_wrapper(GLcontext *ctx, const struct gl_renderbuffer_attachment *att)
|
|||
ASSERT(trb->TexImage);
|
||||
|
||||
trb->Store = trb->TexImage->TexFormat->StoreTexel;
|
||||
ASSERT(trb->Store);
|
||||
if (!trb->Store) {
|
||||
/* we'll never draw into some textures (compressed formats) */
|
||||
trb->Store = store_nop;
|
||||
}
|
||||
|
||||
if (att->Texture->Target == GL_TEXTURE_1D_ARRAY_EXT) {
|
||||
trb->Yoffset = att->Zoffset;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue