Fix WaterObject loose reflection bug.

This commit is contained in:
LuisAntonRebollo 2014-08-03 12:56:11 +02:00
parent 69838bdc8c
commit ada24b3d8c

View file

@ -732,6 +732,11 @@ void WaterObject::renderObject( ObjectRenderInst *ri, SceneRenderState *state, B
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 )
query->begin();