]> git.sesse.net Git - casparcg/commitdiff
Qualify buffer::usage enum
authorDimitry Ishenko <dimitry.ishenko@gmail.com>
Wed, 18 Nov 2015 23:16:32 +0000 (18:16 -0500)
committerDimitry Ishenko <dimitry.ishenko@gmail.com>
Wed, 18 Nov 2015 23:16:32 +0000 (18:16 -0500)
accelerator/ogl/util/buffer.cpp

index 22b93c004b894fcd717c1e754d6f701d3056f68e..a5a7ab1a5995d6b2ebd5837f52cd7870d020e89e 100644 (file)
@@ -73,8 +73,8 @@ public:
                if(!pbo_)
                        CASPAR_THROW_EXCEPTION(caspar_exception() << msg_info("Failed to allocate buffer."));
 
-               (usage == usage::write_only ? g_w_total_count : g_r_total_count)        ++;
-               (usage == usage::write_only ? g_w_total_size : g_r_total_size)          += size_;
+               (usage == buffer::usage::write_only ? g_w_total_count : g_r_total_count)        ++;
+               (usage == buffer::usage::write_only ? g_w_total_size : g_r_total_size)          += size_;
                
                if(timer.elapsed() > 0.02)
                        CASPAR_LOG(warning) << L"[buffer] Performance warning. Buffer allocation blocked: " << timer.elapsed();