diff --git a/RenderSystems/Direct3D11/include/OgreD3D11HardwareOcclusionQuery.h b/RenderSystems/Direct3D11/include/OgreD3D11HardwareOcclusionQuery.h index dbea8a89eb0..a63daaa539c 100644 --- a/RenderSystems/Direct3D11/include/OgreD3D11HardwareOcclusionQuery.h +++ b/RenderSystems/Direct3D11/include/OgreD3D11HardwareOcclusionQuery.h @@ -75,7 +75,6 @@ namespace Ogre { void beginOcclusionQuery(); void endOcclusionQuery(); bool pullOcclusionQuery( unsigned int* NumOfFragments); - unsigned int getLastQuerysPixelcount() { return mPixelCount; } bool isStillOutstanding(void); diff --git a/RenderSystems/Direct3D11/src/OgreD3D11HardwareOcclusionQuery.cpp b/RenderSystems/Direct3D11/src/OgreD3D11HardwareOcclusionQuery.cpp index 993fc8036d5..8bad32466ef 100644 --- a/RenderSystems/Direct3D11/src/OgreD3D11HardwareOcclusionQuery.cpp +++ b/RenderSystems/Direct3D11/src/OgreD3D11HardwareOcclusionQuery.cpp @@ -68,7 +68,6 @@ namespace Ogre { { mDevice.GetImmediateContext()->Begin(mQuery.Get());//Issue(D3DISSUE_BEGIN); mIsQueryResultStillOutstanding = true; - mPixelCount = 0; } void D3D11HardwareOcclusionQuery::endOcclusionQuery() diff --git a/RenderSystems/Direct3D9/include/OgreD3D9HardwareOcclusionQuery.h b/RenderSystems/Direct3D9/include/OgreD3D9HardwareOcclusionQuery.h index 4e968b7d5e3..322a4ffcdaf 100644 --- a/RenderSystems/Direct3D9/include/OgreD3D9HardwareOcclusionQuery.h +++ b/RenderSystems/Direct3D9/include/OgreD3D9HardwareOcclusionQuery.h @@ -76,7 +76,6 @@ namespace Ogre { void beginOcclusionQuery(); void endOcclusionQuery(); bool pullOcclusionQuery( unsigned int* NumOfFragments); - unsigned int getLastQuerysPixelcount(); bool isStillOutstanding(void); // Called immediately after the Direct3D device has been created. diff --git a/RenderSystems/Direct3D9/src/OgreD3D9HardwareOcclusionQuery.cpp b/RenderSystems/Direct3D9/src/OgreD3D9HardwareOcclusionQuery.cpp index c4a186de4c1..9f81af88153 100644 --- a/RenderSystems/Direct3D9/src/OgreD3D9HardwareOcclusionQuery.cpp +++ b/RenderSystems/Direct3D9/src/OgreD3D9HardwareOcclusionQuery.cpp @@ -86,7 +86,6 @@ namespace Ogre { { pOccQuery->Issue(D3DISSUE_BEGIN); mIsQueryResultStillOutstanding = true; - mPixelCount = 0; } } @@ -141,7 +140,6 @@ namespace Ogre { if (hr == D3DERR_DEVICELOST) { *NumOfFragments = 0; - mPixelCount = 0; SAFE_RELEASE(it->second); break; } @@ -156,12 +154,6 @@ namespace Ogre { return true; } - //------------------------------------------------------------------ - unsigned int D3D9HardwareOcclusionQuery::getLastQuerysPixelcount() - { - return mPixelCount; - } - //------------------------------------------------------------------ bool D3D9HardwareOcclusionQuery::isStillOutstanding(void) {