mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 13:30:11 +01:00
main/teximage: Even on failure use valid format for init()
Otherwise init_teximage_fields_ms() (called by _mesa_init_teximage_fields()) will always assert as it can't find valid base format. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
fbfc6a2f67
commit
4aea4d6d64
1 changed files with 1 additions and 1 deletions
|
|
@ -5772,7 +5772,7 @@ texture_image_multisample(struct gl_context *ctx, GLuint dims,
|
|||
* like, but being tidy is good.
|
||||
*/
|
||||
_mesa_init_teximage_fields(ctx, texImage,
|
||||
0, 0, 0, 0, GL_NONE, MESA_FORMAT_NONE);
|
||||
0, 0, 0, 0, internalformat, texFormat);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue