Merge and fix the default _value of GLquery so it is 0, not broken

This commit is contained in:
sam gateau 2018-09-11 11:43:14 -07:00
parent 9516c42db9
commit 77586933c8
2 changed files with 2 additions and 2 deletions

View file

@ -94,7 +94,7 @@ void GLBackend::do_getQuery(const Batch& batch, size_t paramOffset) {
}
#else
// gles3 is not supporting true time query returns just the batch elapsed time
query->triggerReturnHandler(glquery->_result, glquery->_batchElapsedTime);
query->triggerReturnHandler(0, glquery->_batchElapsedTime);
#endif
(void)CHECK_GL_ERROR();
}

View file

@ -47,7 +47,7 @@ public:
const GLuint& _endqo = { _id };
const GLuint _beginqo = { 0 };
GLuint64 _result { (GLuint64)-1 };
GLuint64 _result { (GLuint64)0 };
GLuint64 _batchElapsedTime{ (GLuint64)0 };
std::chrono::high_resolution_clock::time_point _batchElapsedTimeBegin;
uint64_t _profileRangeId { 0 };