]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/query.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / source / core / query.cpp
index f075cada23c7f9d4ed577d37b1b51c2baabb651c..13b62801133f29636511b9fe1e55c74d628bfa11 100644 (file)
@@ -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),