mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-06 10:44:01 +00:00
[host] all: don't combine the downsampler rules
This commit is contained in:
@@ -50,12 +50,13 @@ typedef struct
|
||||
}
|
||||
DownsampleInst;
|
||||
|
||||
static Vector downsampleRules = {0};
|
||||
|
||||
static void downsample_earlyInit(void)
|
||||
{
|
||||
struct Option options[] =
|
||||
{
|
||||
DOWNSAMPLE_PARSER("dxgi"),
|
||||
DOWNSAMPLE_PARSER("dxgi", &downsampleRules),
|
||||
{0}
|
||||
};
|
||||
|
||||
@@ -99,7 +100,9 @@ static bool downsample_configure(void * opaque,
|
||||
|
||||
if (!this.pshader)
|
||||
{
|
||||
DownsampleRule * rule = downsampleRule_match(*width, *height);
|
||||
DownsampleRule * rule = downsampleRule_match(&downsampleRules,
|
||||
*width, *height);
|
||||
|
||||
if (!rule || (rule->targetX == *width && rule->targetY == *height))
|
||||
{
|
||||
this.disabled = true;
|
||||
|
Reference in New Issue
Block a user