Disable the linearize flag if no SRGB handling. It's probably not necessary then, only in very special cases. But I'm not really sure about this...
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3732 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
f7d337d317
commit
369febf7cb
|
@ -570,7 +570,7 @@ bool CD3D9Driver::endScene()
|
|||
|
||||
IDirect3DSwapChain9* swChain;
|
||||
hr = pID3DDevice->GetSwapChain(0, &swChain);
|
||||
DWORD flags = (Caps.Caps3&D3DCAPS3_LINEAR_TO_SRGB_PRESENTATION)?D3DPRESENT_LINEAR_CONTENT:0;
|
||||
DWORD flags = (Params.HandleSRGB && (Caps.Caps3&D3DCAPS3_LINEAR_TO_SRGB_PRESENTATION))?D3DPRESENT_LINEAR_CONTENT:0;
|
||||
hr = swChain->Present(srcRct, NULL, WindowId, NULL, flags);
|
||||
|
||||
if (SUCCEEDED(hr))
|
||||
|
|
Loading…
Reference in New Issue