From 38b05cda50a73d656e257ea3d2f7999936085090 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 12 Oct 2020 20:08:51 +1100 Subject: [PATCH] [host] dxgi: fix incorrect bpp value --- host/platform/Windows/capture/DXGI/src/dxgi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host/platform/Windows/capture/DXGI/src/dxgi.c b/host/platform/Windows/capture/DXGI/src/dxgi.c index 44efc4a1..d6d45187 100644 --- a/host/platform/Windows/capture/DXGI/src/dxgi.c +++ b/host/platform/Windows/capture/DXGI/src/dxgi.c @@ -523,7 +523,7 @@ static bool dxgi_init() IDXGIOutputDuplication_GetDesc(this->dup, &dupDesc); DEBUG_INFO("Source Format : %s", GetDXGIFormatStr(dupDesc.ModeDesc.Format)); - uint8_t bpp = 8; + uint8_t bpp = 4; switch(dupDesc.ModeDesc.Format) { case DXGI_FORMAT_B8G8R8A8_UNORM : this->format = CAPTURE_FMT_BGRA ; break; @@ -532,7 +532,7 @@ static bool dxgi_init() case DXGI_FORMAT_R16G16B16A16_FLOAT: this->format = CAPTURE_FMT_RGBA16F; - bpp = 16; + bpp = 8; break; default: