cosmetic: making things a bit more idiomatic

This commit is contained in:
Marcos Slomp
2026-06-16 11:30:21 -07:00
parent 32b712c120
commit 22abcd272f

View File

@@ -248,7 +248,7 @@ private:
{
if( m_supportsQueryBufferObject )
{
constexpr uint64_t sentinel = ~0ull;
constexpr uint64_t sentinel = ~uint64_t(0);
uint64_t time = sentinel;
glGetQueryObjectui64v( m_query[queryId], GL_QUERY_RESULT_NO_WAIT, &time );
if ( time == sentinel ) return false;
@@ -258,7 +258,7 @@ private:
{
GLint available;
glGetQueryObjectiv( m_query[queryId], GL_QUERY_RESULT_AVAILABLE, &available );
if( !available ) return false;
if( available == GL_FALSE ) return false;
uint64_t time;
glGetQueryObjectui64v( m_query[queryId], GL_QUERY_RESULT, &time );
timestamp = time;