Skip to content

Commit

Permalink
D3D*: HardwareOcclusionQuery - retain LastQuerysPixelcount
Browse files Browse the repository at this point in the history
like on D3D. Also drop unused overload.
  • Loading branch information
paroj committed Sep 11, 2024
1 parent 9ab4244 commit a49c0d3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ namespace Ogre {
void beginOcclusionQuery();
void endOcclusionQuery();
bool pullOcclusionQuery( unsigned int* NumOfFragments);
unsigned int getLastQuerysPixelcount() { return mPixelCount; }
bool isStillOutstanding(void);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ namespace Ogre {
{
mDevice.GetImmediateContext()->Begin(mQuery.Get());//Issue(D3DISSUE_BEGIN);
mIsQueryResultStillOutstanding = true;
mPixelCount = 0;
}

void D3D11HardwareOcclusionQuery::endOcclusionQuery()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ namespace Ogre {
{
pOccQuery->Issue(D3DISSUE_BEGIN);
mIsQueryResultStillOutstanding = true;
mPixelCount = 0;
}
}

Expand Down Expand Up @@ -141,7 +140,6 @@ namespace Ogre {
if (hr == D3DERR_DEVICELOST)
{
*NumOfFragments = 0;
mPixelCount = 0;
SAFE_RELEASE(it->second);
break;
}
Expand All @@ -156,12 +154,6 @@ namespace Ogre {
return true;
}

//------------------------------------------------------------------
unsigned int D3D9HardwareOcclusionQuery::getLastQuerysPixelcount()
{
return mPixelCount;
}

//------------------------------------------------------------------
bool D3D9HardwareOcclusionQuery::isStillOutstanding(void)
{
Expand Down

0 comments on commit a49c0d3

Please sign in to comment.