Skip to content

Commit

Permalink
dxEnviromentRender: Use CTexture constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Mar 22, 2016
1 parent 1182401 commit 20eba73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Layers/xrRender/dxEnvironmentRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ void dxEnvironmentRender::OnFrame(CEnvironment &env)
//. very very ugly hack
if (HW.Caps.raster_major >= 3 && HW.Caps.geometry.bVTF){
// tonemapping in VS
mixRen.sky_r_textures.push_back (mk_pair(u32(D3DVERTEXTEXTURESAMPLER0),tonemap)); //. hack
mixRen.sky_r_textures_env.push_back (mk_pair(u32(D3DVERTEXTEXTURESAMPLER0),tonemap)); //. hack
mixRen.clouds_r_textures.push_back (mk_pair(u32(D3DVERTEXTEXTURESAMPLER0),tonemap)); //. hack
mixRen.sky_r_textures.push_back (mk_pair(u32(CTexture::rstVertex),tonemap)); //. hack
mixRen.sky_r_textures_env.push_back (mk_pair(u32(CTexture::rstVertex),tonemap)); //. hack
mixRen.clouds_r_textures.push_back (mk_pair(u32(CTexture::rstVertex),tonemap)); //. hack
} else {
// tonemapping in PS
mixRen.sky_r_textures.push_back (mk_pair(2,tonemap)); //. hack
Expand Down

0 comments on commit 20eba73

Please sign in to comment.