Browse Source

Vk: test that Device::properties() exist even for wrapped devices.

It explodes!!
pull/494/head
Vladimír Vondruš 5 years ago
parent
commit
762604ee7f
  1. 3
      src/Magnum/Vk/Test/DeviceVkTest.cpp

3
src/Magnum/Vk/Test/DeviceVkTest.cpp

@ -1104,6 +1104,9 @@ void DeviceVkTest::wrap() {
/* Listed features should be reported as enabled */ /* Listed features should be reported as enabled */
CORRADE_COMPARE(wrapped.enabledFeatures(), DeviceFeature::RobustBufferAccess); CORRADE_COMPARE(wrapped.enabledFeatures(), DeviceFeature::RobustBufferAccess);
/* Device properties should be available */
CORRADE_COMPARE(wrapped.properties().handle(), deviceProperties.handle());
/* Releasing won't destroy anything ... */ /* Releasing won't destroy anything ... */
CORRADE_COMPARE(wrapped.release(), device); CORRADE_COMPARE(wrapped.release(), device);
} }

Loading…
Cancel
Save