mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-09 16:18:20 +00:00
[host] dxgi: fix crash during init due to out of order accesses
This commit is contained in:
parent
23b773ad80
commit
ecd3692e1e
@ -78,8 +78,8 @@ static bool sdrWhiteLevel_setup(
|
|||||||
this.context = context;
|
this.context = context;
|
||||||
this.shareable = shareable;
|
this.shareable = shareable;
|
||||||
|
|
||||||
comRef_initGlobalScope(10, this.comScope);
|
comRef_initGlobalScope(11, this.comScope);
|
||||||
comRef_scopePush(10);
|
comRef_scopePush(11);
|
||||||
|
|
||||||
comRef_defineLocal(IDXGIOutput6, output6);
|
comRef_defineLocal(IDXGIOutput6, output6);
|
||||||
status = IDXGIOutput_QueryInterface(
|
status = IDXGIOutput_QueryInterface(
|
||||||
@ -174,11 +174,12 @@ static bool sdrWhiteLevel_setup(
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
comRef_toGlobal(this.sampler, sampler);
|
||||||
|
comRef_toGlobal(this.buffer , buffer );
|
||||||
|
|
||||||
updateConsts();
|
updateConsts();
|
||||||
DEBUG_INFO("SDR White Level : %f" , this.sdrWhiteLevel);
|
DEBUG_INFO("SDR White Level : %f" , this.sdrWhiteLevel);
|
||||||
|
|
||||||
comRef_toGlobal(this.sampler, sampler);
|
|
||||||
comRef_toGlobal(this.buffer , buffer );
|
|
||||||
result = true;
|
result = true;
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
Loading…
Reference in New Issue
Block a user