mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-18 00:18:22 +00:00
(D3D) Rewrite renderchain_add_lut
This commit is contained in:
parent
6f05da2208
commit
27ea47ee6d
@ -193,21 +193,22 @@ bool renderchain_add_lut(void *data, const std::string &id,
|
||||
|
||||
RARCH_LOG("[D3D]: Loading LUT texture: %s.\n", path.c_str());
|
||||
|
||||
if (FAILED(D3DXCreateTextureFromFileExA(
|
||||
d3dr,
|
||||
path.c_str(),
|
||||
D3DX_DEFAULT_NONPOW2,
|
||||
D3DX_DEFAULT_NONPOW2,
|
||||
0,
|
||||
0,
|
||||
D3DFMT_FROM_FILE,
|
||||
D3DPOOL_MANAGED,
|
||||
smooth ? D3DX_FILTER_LINEAR : D3DX_FILTER_POINT,
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
NULL,
|
||||
&lut)))
|
||||
lut = (LPDIRECT3DTEXTURE)d3d_texture_new(d3dr,
|
||||
path.c_str(),
|
||||
D3DX_DEFAULT_NONPOW2,
|
||||
D3DX_DEFAULT_NONPOW2,
|
||||
0,
|
||||
0,
|
||||
D3DFMT_FROM_FILE,
|
||||
D3DPOOL_MANAGED,
|
||||
smooth ? D3DX_FILTER_LINEAR : D3DX_FILTER_POINT,
|
||||
0,
|
||||
0,
|
||||
NULL,
|
||||
NULL,
|
||||
);
|
||||
|
||||
if (!lut)
|
||||
return false;
|
||||
|
||||
d3d_set_texture(d3dr, 0, lut);
|
||||
|
Loading…
x
Reference in New Issue
Block a user