File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -912,8 +912,9 @@ COpenGLCommandBuffer::~COpenGLCommandBuffer()
912
912
case impl::ECT_RESET_QUERY_POOL:
913
913
{
914
914
auto & c = cmd.get <impl::ECT_RESET_QUERY_POOL>();
915
- const COpenGLQueryPool* qp = static_cast <const COpenGLQueryPool*>(c.queryPool .get ());
916
- qp->resetQueries (gl, c.query , c.queryCount );
915
+ COpenGLQueryPool* qp = static_cast <COpenGLQueryPool*>(c.queryPool .get ());
916
+ bool success = qp->resetQueries (gl, c.query , c.queryCount );
917
+ assert (success);
917
918
}
918
919
break ;
919
920
case impl::ECT_BEGIN_QUERY:
Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ namespace impl
304
304
};
305
305
_NBL_DEFINE_SCMD_SPEC (ECT_RESET_QUERY_POOL)
306
306
{
307
- core::smart_refctd_ptr<const IQueryPool> queryPool;
307
+ core::smart_refctd_ptr<IQueryPool> queryPool;
308
308
uint32_t query;
309
309
uint32_t queryCount;
310
310
};
@@ -1075,7 +1075,7 @@ class COpenGLCommandBuffer final : public IGPUCommandBuffer
1075
1075
if (!this ->isCompatibleDevicewise (queryPool))
1076
1076
return false ;
1077
1077
SCmd<impl::ECT_RESET_QUERY_POOL> cmd;
1078
- cmd.queryPool = core::smart_refctd_ptr<const IQueryPool>(queryPool);
1078
+ cmd.queryPool = core::smart_refctd_ptr<IQueryPool>(queryPool);
1079
1079
cmd.query = firstQuery;
1080
1080
cmd.queryCount = queryCount;
1081
1081
pushCommand (std::move (cmd));
You can’t perform that action at this time.
0 commit comments