Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/gpu/opengl/gl_query.cc')
-rw-r--r--source/blender/gpu/opengl/gl_query.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/gpu/opengl/gl_query.cc b/source/blender/gpu/opengl/gl_query.cc
index 8a42719c665..da9770b4cc1 100644
--- a/source/blender/gpu/opengl/gl_query.cc
+++ b/source/blender/gpu/opengl/gl_query.cc
@@ -41,7 +41,7 @@ void GLQueryPool::init(GPUQueryType type)
query_issued_ = 0;
}
-#if 0 /* TODO to avoid realloc of permanent query pool. */
+#if 0 /* TODO: to avoid realloc of permanent query pool. */
void GLQueryPool::reset(GPUQueryType type)
{
initialized_ = false;
@@ -50,7 +50,7 @@ void GLQueryPool::reset(GPUQueryType type)
void GLQueryPool::begin_query()
{
- /* TODO add assert about expected usage. */
+ /* TODO: add assert about expected usage. */
while (query_issued_ >= query_ids_.size()) {
int64_t prev_size = query_ids_.size();
query_ids_.resize(prev_size + QUERY_CHUNCK_LEN);
@@ -61,7 +61,7 @@ void GLQueryPool::begin_query()
void GLQueryPool::end_query()
{
- /* TODO add assert about expected usage. */
+ /* TODO: add assert about expected usage. */
glEndQuery(gl_type_);
}
@@ -70,7 +70,7 @@ void GLQueryPool::get_occlusion_result(MutableSpan<uint32_t> r_values)
BLI_assert(r_values.size() == query_issued_);
for (int i = 0; i < query_issued_; i++) {
- /* Note: This is a sync point. */
+ /* NOTE: This is a sync point. */
glGetQueryObjectuiv(query_ids_[i], GL_QUERY_RESULT, &r_values[i]);
}
}