mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-14 03:20:22 +00:00
[host] d12: fix damage tracking with RGB24 enabled
This commit is contained in:
@@ -58,10 +58,11 @@ struct D12Backend
|
||||
CaptureResult (*sync)(D12Backend * instance,
|
||||
ID3D12CommandQueue * commandQueue);
|
||||
|
||||
ID3D12Resource * (*fetch)(D12Backend * instance,
|
||||
unsigned frameBufferIndex,
|
||||
const RECT ** dirtyRects,
|
||||
unsigned * nbDirtyRects);
|
||||
ID3D12Resource * (*fetch)(
|
||||
D12Backend * instance,
|
||||
unsigned frameBufferIndex,
|
||||
RECT ** dirtyRects,
|
||||
unsigned * nbDirtyRects);
|
||||
};
|
||||
|
||||
static inline bool d12_backendCreate(const D12Backend * backend,
|
||||
@@ -96,8 +97,7 @@ static inline CaptureResult d12_backendSync(D12Backend * instance,
|
||||
{ return instance->sync(instance, commandQueue); }
|
||||
|
||||
static inline ID3D12Resource * d12_backendFetch(D12Backend * instance,
|
||||
unsigned frameBufferIndex, const RECT ** dirtyRects,
|
||||
unsigned * nbDirtyRects)
|
||||
unsigned frameBufferIndex, RECT ** dirtyRects, unsigned * nbDirtyRects)
|
||||
{ return instance->fetch(instance, frameBufferIndex, dirtyRects,
|
||||
nbDirtyRects); }
|
||||
|
||||
|
Reference in New Issue
Block a user