X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fquery.cpp;h=13b62801133f29636511b9fe1e55c74d628bfa11;hp=f075cada23c7f9d4ed577d37b1b51c2baabb651c;hb=7ef75a4c4dbfc437e466381dd67c23357e607b82;hpb=160e9eea29bd10034733d59507fa1bcca36be401 diff --git a/source/core/query.cpp b/source/core/query.cpp index f075cada..13b62801 100644 --- a/source/core/query.cpp +++ b/source/core/query.cpp @@ -6,11 +6,18 @@ namespace GL { QueryPool::QueryPool(QueryType t, unsigned s): QueryPoolBackend(t), - type(t) + type(t), + size(0) { resize(s); } +void QueryPool::resize(unsigned s) +{ + size = s; + QueryPoolBackend::resize(); +} + QueryPool::Activate::Activate(Renderer &r, const QueryPool &p, unsigned i): renderer(r),