X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fquery.cpp;h=13b62801133f29636511b9fe1e55c74d628bfa11;hb=e70662d7812464159f2e47f4bebb69d88f89ae93;hp=f075cada23c7f9d4ed577d37b1b51c2baabb651c;hpb=160e9eea29bd10034733d59507fa1bcca36be401;p=libs%2Fgl.git 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),