aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_vulkan_cxx_demo.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-26 15:56:44 +0100
committerDavid Robillard <d@drobilla.net>2020-11-26 16:05:53 +0100
commitc29aaaf66c1f4c11e8b3e4decbe129626b5553f3 (patch)
treea50f3a1de328632a94799551d53e503929c2dda1 /examples/pugl_vulkan_cxx_demo.cpp
parentee6aebafa72303dc01c91a5ca069fbe7188b1a14 (diff)
downloadpugl-c29aaaf66c1f4c11e8b3e4decbe129626b5553f3.tar.gz
pugl-c29aaaf66c1f4c11e8b3e4decbe129626b5553f3.tar.bz2
pugl-c29aaaf66c1f4c11e8b3e4decbe129626b5553f3.zip
Add pugl::World constructor overload that takes a flag
Eventually we'll need an actual smart flags type here, but for now there's only one flag anyway, so simply define an overload that takes one.
Diffstat (limited to 'examples/pugl_vulkan_cxx_demo.cpp')
-rw-r--r--examples/pugl_vulkan_cxx_demo.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/pugl_vulkan_cxx_demo.cpp b/examples/pugl_vulkan_cxx_demo.cpp
index 154bbaf..677750f 100644
--- a/examples/pugl_vulkan_cxx_demo.cpp
+++ b/examples/pugl_vulkan_cxx_demo.cpp
@@ -1438,8 +1438,7 @@ makeRects(const size_t numRects, const uint32_t windowWidth)
PuglVulkanDemo::PuglVulkanDemo(const PuglTestOptions& o, const size_t numRects)
: opts{o}
- , world{pugl::WorldType::program,
- static_cast<pugl::WorldFlags>(pugl::WorldFlag::threads)} // FIXME?
+ , world{pugl::WorldType::program, pugl::WorldFlag::threads}
, loader{world}
, view{world, *this}
, rects{makeRects(numRects, extent.width)}