Skip to content

Commit

Permalink
GL3Plus: do pixel-wise occlusion queries
Browse files Browse the repository at this point in the history
as in D3D11, GL, D3D9
  • Loading branch information
paroj committed Sep 10, 2024
1 parent 32aa04b commit 53a6441
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ namespace Ogre {

void GL3PlusHardwareOcclusionQuery::beginOcclusionQuery()
{
OGRE_CHECK_GL_ERROR(glBeginQuery(GL_ANY_SAMPLES_PASSED, mQueryID));
OGRE_CHECK_GL_ERROR(glBeginQuery(GL_SAMPLES_PASSED, mQueryID));
}

void GL3PlusHardwareOcclusionQuery::endOcclusionQuery()
{
OGRE_CHECK_GL_ERROR(glEndQuery(GL_ANY_SAMPLES_PASSED));
OGRE_CHECK_GL_ERROR(glEndQuery(GL_SAMPLES_PASSED));
}

bool GL3PlusHardwareOcclusionQuery::pullOcclusionQuery( unsigned int* NumOfFragments )
Expand Down

0 comments on commit 53a6441

Please sign in to comment.