Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat: Use pixel format to create texture (#1249)

seer-by-sentry[bot]c778379b25a1
diff --git a/crates/scap-direct3d/src/lib.rs b/crates/scap-direct3d/src/lib.rs
index e69b36c92..a7dc7fb6a 100644
--- a/crates/scap-direct3d/src/lib.rs
+++ b/crates/scap-direct3d/src/lib.rs
@@ -438,7 +438,7 @@ impl Frame {
Height: self.height,
MipLevels: 1,
ArraySize: 1,
- Format: DXGI_FORMAT(DirectXPixelFormat::R8G8B8A8UIntNormalized.0), // (self.color_format as i32),
+ Format: self.pixel_format.as_dxgi(),
SampleDesc: DXGI_SAMPLE_DESC {
Count: 1,
Quality: 0,