Skip to content

Commit 20eba73

Browse files
committed
dxEnviromentRender: Use CTexture constants.
1 parent 1182401 commit 20eba73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Layers/xrRender/dxEnvironmentRender.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ void dxEnvironmentRender::OnFrame(CEnvironment &env)
174174
//. very very ugly hack
175175
if (HW.Caps.raster_major >= 3 && HW.Caps.geometry.bVTF){
176176
// tonemapping in VS
177-
mixRen.sky_r_textures.push_back (mk_pair(u32(D3DVERTEXTEXTURESAMPLER0),tonemap)); //. hack
178-
mixRen.sky_r_textures_env.push_back (mk_pair(u32(D3DVERTEXTEXTURESAMPLER0),tonemap)); //. hack
179-
mixRen.clouds_r_textures.push_back (mk_pair(u32(D3DVERTEXTEXTURESAMPLER0),tonemap)); //. hack
177+
mixRen.sky_r_textures.push_back (mk_pair(u32(CTexture::rstVertex),tonemap)); //. hack
178+
mixRen.sky_r_textures_env.push_back (mk_pair(u32(CTexture::rstVertex),tonemap)); //. hack
179+
mixRen.clouds_r_textures.push_back (mk_pair(u32(CTexture::rstVertex),tonemap)); //. hack
180180
} else {
181181
// tonemapping in PS
182182
mixRen.sky_r_textures.push_back (mk_pair(2,tonemap)); //. hack

0 commit comments

Comments
 (0)