mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Use GL_ANY_SAMPLES_PASSED instead of GL_SAMPLES_PASSED Closes #2972
GL_SAMPLES_PASSED is not supported by GLES. The pixel history test is already using a 1x1 scissor test, GL_ANY_SAMPLES_PASSED should be the same as GL_SAMPLES_PASSED. The pixel history logic is only testing for non-zero passing samples, the precise value is not used.
This commit is contained in:
@@ -1374,14 +1374,14 @@ bool QueryTest(WrappedOpenGL *driver, GLPixelHistoryResources &resources, const
|
||||
}
|
||||
|
||||
driver->SetFetchCounters(true);
|
||||
driver->glBeginQuery(eGL_SAMPLES_PASSED, samplesPassedQuery);
|
||||
driver->glBeginQuery(eGL_ANY_SAMPLES_PASSED, samplesPassedQuery);
|
||||
driver->ReplayLog(event.eventId, event.eventId, eReplay_OnlyDraw);
|
||||
driver->glEndQuery(eGL_SAMPLES_PASSED);
|
||||
driver->glEndQuery(eGL_ANY_SAMPLES_PASSED);
|
||||
driver->SetFetchCounters(false);
|
||||
int numSamplesPassed;
|
||||
driver->glGetQueryObjectiv(samplesPassedQuery, eGL_QUERY_RESULT, &numSamplesPassed);
|
||||
int anySamplesPassed = GL_FALSE;
|
||||
driver->glGetQueryObjectiv(samplesPassedQuery, eGL_QUERY_RESULT, &anySamplesPassed);
|
||||
driver->glDeleteQueries(1, &samplesPassedQuery);
|
||||
return numSamplesPassed == 0;
|
||||
return anySamplesPassed == GL_FALSE;
|
||||
}
|
||||
|
||||
void QueryFailedTests(WrappedOpenGL *driver, GLPixelHistoryResources &resources,
|
||||
|
||||
Reference in New Issue
Block a user