Skip to content

Commit c778379

Browse files
feat: Use pixel format to create texture (#1249)
Co-authored-by: seer-by-sentry[bot] <157164994+seer-by-sentry[bot]@users.noreply.github.com> Co-authored-by: Brendan Allan <brendonovich@outlook.com>
1 parent 653c930 commit c778379

File tree

1 file changed

+1
-1
lines changed
  • crates/scap-direct3d/src

1 file changed

+1
-1
lines changed

crates/scap-direct3d/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ impl Frame {
438438
Height: self.height,
439439
MipLevels: 1,
440440
ArraySize: 1,
441-
Format: DXGI_FORMAT(DirectXPixelFormat::R8G8B8A8UIntNormalized.0), // (self.color_format as i32),
441+
Format: self.pixel_format.as_dxgi(),
442442
SampleDesc: DXGI_SAMPLE_DESC {
443443
Count: 1,
444444
Quality: 0,

0 commit comments

Comments
 (0)