Skip to content
Snippets Groups Projects

Fix warning and typo in Query.hh

Merged Jonathan Kunstwald requested to merge feature/jk-dev into develop
1 file
+ 5
4
Compare changes
  • Side-by-side
  • Inline
+ 5
4
@@ -42,15 +42,16 @@ public:
void begin() { glBeginQuery(mTarget, mObjectName); }
/// end the query
void end() { glEndQuery(mTarget); }
/// returns true if the result of the query is available, if not, trying to get the result will stall the CPU
GLboolean isResultAvailable()
bool isResultAvailable()
{
GLuint resultAvailable;
glGetQueryObjectuiv(mObjectName, GL_QUERY_RESULT_AVAILABLE, &resultAvailable);
return (GLboolean)resultAvailable;
return resultAvailable == GL_TRUE;
}
/// get the query result, what it is depents on the query target
/// get the query result, what it is depends on the query target
GLuint getResult()
{
GLuint queryResult;
@@ -59,7 +60,7 @@ public:
}
/// get the query result in 64 bit, what it is depents on the query target
/// get the query result in 64 bit, what it is depends on the query target
GLuint64 getResult64()
{
GLuint64 queryResult;
Loading