From 22abcd272f3d076bcdc5db4525dd84b8650dee4f Mon Sep 17 00:00:00 2001 From: Marcos Slomp Date: Tue, 16 Jun 2026 11:30:21 -0700 Subject: [PATCH] cosmetic: making things a bit more idiomatic --- public/tracy/TracyOpenGL.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/tracy/TracyOpenGL.hpp b/public/tracy/TracyOpenGL.hpp index fc32b664..189a810a 100644 --- a/public/tracy/TracyOpenGL.hpp +++ b/public/tracy/TracyOpenGL.hpp @@ -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;