Browse Source

Add forgotten test for NoCreate TimeQuery constructor.

pull/107/head
Vladimír Vondruš 11 years ago
parent
commit
0b7d62ffcc
  1. 15
      src/Magnum/Test/TimeQueryGLTest.cpp

15
src/Magnum/Test/TimeQueryGLTest.cpp

@ -31,6 +31,7 @@ namespace Magnum { namespace Test {
struct TimeQueryGLTest: AbstractOpenGLTester {
explicit TimeQueryGLTest();
void constructNoCreate();
void wrap();
void queryTime();
@ -38,12 +39,24 @@ struct TimeQueryGLTest: AbstractOpenGLTester {
};
TimeQueryGLTest::TimeQueryGLTest() {
addTests({&TimeQueryGLTest::wrap,
addTests({&TimeQueryGLTest::constructNoCreate,
&TimeQueryGLTest::wrap,
&TimeQueryGLTest::queryTime,
&TimeQueryGLTest::queryTimestamp});
}
void TimeQueryGLTest::constructNoCreate() {
{
TimeQuery query{NoCreate};
MAGNUM_VERIFY_NO_ERROR();
CORRADE_COMPARE(query.id(), 0);
}
MAGNUM_VERIFY_NO_ERROR();
}
void TimeQueryGLTest::wrap() {
#ifndef MAGNUM_TARGET_GLES
if(!Context::current()->isExtensionSupported<Extensions::GL::ARB::timer_query>())

Loading…
Cancel
Save