diff options
author | Axel Davy <[email protected]> | 2018-09-13 20:56:55 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2018-09-25 22:05:24 +0200 |
commit | 110950318c14ef8e97021de157d936f022f37027 (patch) | |
tree | c2ffd75bd8d3b1ca1fdf5cf4ec981bf5e1e02c38 /src/gallium/state_trackers/nine/swapchain9ex.h | |
parent | af60fbc0a4a7c02222d3966450daa30f75a566a7 (diff) |
st/nine: Check if format is DS before retrieving flags
d3d9_get_pipe_depth_format_bindings assumes the input format
is a depth stencil format.
Previously the user could hit this function with an invalid format.
Protect the last non protected call with a depth_stencil_format check.
Another solution is to have d3d9_get_pipe_depth_format_bindings
support non depth stencil format, but we don't want the user
to create depth buffers with d3d formats that can't be one,
it's better to check if the format can be depth buffer with d3d.
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/swapchain9ex.h')
0 files changed, 0 insertions, 0 deletions