mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
engine: hdr to ldr conversion for HDR_TYPE_NONE
This commit is contained in:
@@ -939,6 +939,10 @@ bool CShaderDeviceMgrDx8::ComputeCapsFromD3D( HardwareCaps_t *pCaps, int nAdapte
|
||||
D3DFMT_X8R8G8B8, D3DUSAGE_QUERY_FILTER,
|
||||
D3DRTYPE_TEXTURE, D3DFMT_A16B16G16R16 ) == S_OK );
|
||||
|
||||
#ifdef TOGLES
|
||||
bSupportsInteger16Textures = caps.SupportInt16Format;
|
||||
#endif
|
||||
|
||||
// Does the device support filterable fp16 textures?
|
||||
bool bSupportsFloat16Textures =
|
||||
( D3D()->CheckDeviceFormat( nAdapter, DX8_DEVTYPE,
|
||||
@@ -1072,7 +1076,7 @@ bool CShaderDeviceMgrDx8::ComputeCapsFromD3D( HardwareCaps_t *pCaps, int nAdapte
|
||||
else
|
||||
if ( bSupportsIntegerHDR )
|
||||
pCaps->m_MaxHDRType = HDR_TYPE_INTEGER;
|
||||
|
||||
|
||||
if ( bSupportsFloatHDR && ( mat_hdr_level.GetInt() == 3 ) )
|
||||
{
|
||||
pCaps->m_HDRType = HDR_TYPE_FLOAT;
|
||||
|
||||
Reference in New Issue
Block a user