mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 09:04:38 +00:00
Merge pull request #747 from BeamNG/fix_water_reflection
WaterObject reflection fix.
This commit is contained in:
commit
1bb95bdb81
1 changed files with 5 additions and 0 deletions
|
|
@ -732,6 +732,11 @@ void WaterObject::renderObject( ObjectRenderInst *ri, SceneRenderState *state, B
|
||||||
|
|
||||||
bool doQuery = ( !mPlaneReflector.mQueryPending && query && mReflectorDesc.useOcclusionQuery );
|
bool doQuery = ( !mPlaneReflector.mQueryPending && query && mReflectorDesc.useOcclusionQuery );
|
||||||
|
|
||||||
|
// We need to call this for avoid a DX9 or Nvidia bug.
|
||||||
|
// At some resollutions read from render target,
|
||||||
|
// break current occlusion query.
|
||||||
|
REFLECTMGR->getRefractTex();
|
||||||
|
|
||||||
if ( doQuery )
|
if ( doQuery )
|
||||||
query->begin();
|
query->begin();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue