mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-24 22:37:19 +00:00
[host] dxgi: check for invalid usage of d3d12 & downsampling
This commit is contained in:
parent
c8a5293645
commit
8682ec207e
@ -91,6 +91,14 @@ static bool d3d12_create(struct DXGIInterface * intf)
|
|||||||
if (!d3d12)
|
if (!d3d12)
|
||||||
return false;
|
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)
|
if (dxgi->debug)
|
||||||
{
|
{
|
||||||
D3D12GetDebugInterface_t D3D12GetDebugInterface = (D3D12GetDebugInterface_t)
|
D3D12GetDebugInterface_t D3D12GetDebugInterface = (D3D12GetDebugInterface_t)
|
||||||
|
Loading…
Reference in New Issue
Block a user