@ -53,9 +53,7 @@ class BufferGLTest: public AbstractOpenGLTester {
# ifndef MAGNUM_TARGET_GLES2
# ifndef MAGNUM_TARGET_GLES2
void copy ( ) ;
void copy ( ) ;
# endif
# endif
# ifndef MAGNUM_TARGET_GLES2
void invalidate ( ) ;
void invalidate ( ) ;
# endif
} ;
} ;
BufferGLTest : : BufferGLTest ( ) {
BufferGLTest : : BufferGLTest ( ) {
@ -71,10 +69,7 @@ BufferGLTest::BufferGLTest() {
# ifndef MAGNUM_TARGET_GLES2
# ifndef MAGNUM_TARGET_GLES2
& BufferGLTest : : copy ,
& BufferGLTest : : copy ,
# endif
# endif
# ifndef MAGNUM_TARGET_GLES
& BufferGLTest : : invalidate } ) ;
& BufferGLTest : : invalidate
# endif
} ) ;
}
}
void BufferGLTest : : construct ( ) {
void BufferGLTest : : construct ( ) {
@ -348,11 +343,7 @@ void BufferGLTest::copy() {
}
}
# endif
# endif
# ifndef MAGNUM_TARGET_GLES
void BufferGLTest : : invalidate ( ) {
void BufferGLTest : : invalidate ( ) {
if ( ! Context : : current ( ) - > isExtensionSupported < Extensions : : GL : : ARB : : invalidate_subdata > ( ) )
CORRADE_SKIP ( Extensions : : GL : : ARB : : invalidate_subdata : : string ( ) + std : : string ( " is not supported " ) ) ;
Buffer buffer ;
Buffer buffer ;
constexpr char data [ ] = { 2 , 7 , 5 , 13 , 25 } ;
constexpr char data [ ] = { 2 , 7 , 5 , 13 , 25 } ;
buffer . setData ( data , BufferUsage : : StaticDraw ) ;
buffer . setData ( data , BufferUsage : : StaticDraw ) ;
@ -365,7 +356,6 @@ void BufferGLTest::invalidate() {
buffer . invalidateData ( ) ;
buffer . invalidateData ( ) ;
MAGNUM_VERIFY_NO_ERROR ( ) ;
MAGNUM_VERIFY_NO_ERROR ( ) ;
}
}
# endif
} }
} }