[host] DXGI: fixed swapped rows and cols variables

In practice this worked out because `rows = cols`, but this will change
in future commits as I implement RGB24 damage support.
This commit is contained in:
Tudor Brindus 2023-11-05 20:39:12 -05:00 committed by Geoffrey McRae
parent c665044bfa
commit c29404eea6

View File

@ -95,7 +95,7 @@ static CaptureResult dxgi_releaseFrame(void);
static bool ppInit(const DXGIPostProcess * pp, bool shareable); static bool ppInit(const DXGIPostProcess * pp, bool shareable);
static ID3D11Texture2D * ppRun(Texture * tex, ID3D11Texture2D * src, static ID3D11Texture2D * ppRun(Texture * tex, ID3D11Texture2D * src,
int * width, int * height, int * width, int * height,
int * rows , int * cols, int * cols , int * rows,
CaptureFormat * format); CaptureFormat * format);
static void ppFreeAll(void); static void ppFreeAll(void);
@ -1468,7 +1468,7 @@ static bool ppInit(const DXGIPostProcess * pp, bool shareable)
static ID3D11Texture2D * ppRun(Texture * tex, ID3D11Texture2D * src, static ID3D11Texture2D * ppRun(Texture * tex, ID3D11Texture2D * src,
int * width, int * height, int * width, int * height,
int * rows, int * cols, int * cols , int * rows,
CaptureFormat * format) CaptureFormat * format)
{ {
PostProcessInstance * inst; PostProcessInstance * inst;