mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 22:01:46 +00:00
[host] dxgi: check for invalid usage of d3d12 & downsampling
This commit is contained in:
parent
c8a5293645
commit
8682ec207e
1 changed files with 8 additions and 0 deletions
|
@ -91,6 +91,14 @@ static bool d3d12_create(struct DXGIInterface * intf)
|
|||
if (!d3d12)
|
||||
return false;
|
||||
|
||||
if (dxgi->downsampleLevel > 0)
|
||||
{
|
||||
DEBUG_WARN("The D3D12 backend does not support downsampling yet");
|
||||
dxgi->downsampleLevel = 0;
|
||||
dxgi->targetWidth = dxgi->width;
|
||||
dxgi->targetHeight = dxgi->height;
|
||||
}
|
||||
|
||||
if (dxgi->debug)
|
||||
{
|
||||
D3D12GetDebugInterface_t D3D12GetDebugInterface = (D3D12GetDebugInterface_t)
|
||||
|
|
Loading…
Reference in a new issue