mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 12:30:11 +01:00
mesa: add more driver support checks for more format queries
fixes #10641 cc: mesa-stable Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27698>
This commit is contained in:
parent
1e849b12f5
commit
1ab94ca17b
1 changed files with 8 additions and 0 deletions
|
|
@ -1030,6 +1030,14 @@ _mesa_GetInternalformativ(GLenum target, GLenum internalformat, GLenum pname,
|
|||
baseformat = _mesa_base_fbo_format(ctx, internalformat);
|
||||
}
|
||||
|
||||
/* If the internal format is unsupported, or if a particular component
|
||||
* is not present in the format, 0 is written to params.
|
||||
*/
|
||||
if (!st_QueryTextureFormatSupport(ctx, target, internalformat)) {
|
||||
buffer[0] = GL_NONE;
|
||||
break;
|
||||
}
|
||||
|
||||
/* Let the driver choose the texture format.
|
||||
*
|
||||
* Disclaimer: I am considering that drivers use for renderbuffers the
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue