Skip to content

Commit

Permalink
d3d11/formats: don't add emulated formats if they would fail on upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper93 committed Sep 16, 2024
1 parent 76bb971 commit c73132f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3d11/formats.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ void pl_d3d11_setup_formats(struct pl_gpu_t *gpu)
fmt->fourcc = pl_fmt_fourcc(fmt);

// If no caps, D3D11 only supports this for things we don't care about
if (!fmt->caps) {
if (!fmt->caps || (fmt->emulated && !(fmt->caps & PL_FMT_CAP_READWRITE))) {
pl_free(fmt);
continue;
}
Expand Down

0 comments on commit c73132f

Please sign in to comment.