@ -3266,7 +3266,7 @@ template<MeshVisualizerGL2D::Flag flag> void MeshVisualizerGLTest::renderDefault
CORRADE_EXPECT_FAIL ( " Defaults don't work for wireframe as line width is derived from viewport size. " ) ;
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( _testDir , " MeshVisualizerTestFiles/defaults-wireframe2D.tga " ) ,
( DebugTools : : CompareImageToFile { _manager } ) ) ;
}
@ -3302,7 +3302,7 @@ template<MeshVisualizerGL2D::Flag flag> void MeshVisualizerGLTest::renderDefault
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( _testDir , " MeshVisualizerTestFiles/defaults-wireframe2D.tga " ) ,
/* AMD has off-by-one errors on edges compared to Intel */
( DebugTools : : CompareImageToFile { _manager , 1.0f , 0.082f } ) ) ;
@ -3388,7 +3388,7 @@ template<MeshVisualizerGL3D::Flag flag> void MeshVisualizerGLTest::renderDefault
CORRADE_EXPECT_FAIL ( " Defaults don't work for wireframe as line width is derived from viewport size. " ) ;
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( _testDir , " MeshVisualizerTestFiles/defaults-wireframe3D.tga " ) ,
( DebugTools : : CompareImageToFile { _manager } ) ) ;
}
@ -3428,7 +3428,7 @@ template<MeshVisualizerGL3D::Flag flag> void MeshVisualizerGLTest::renderDefault
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( _testDir , " MeshVisualizerTestFiles/defaults-wireframe3D.tga " ) ,
/* AMD has off-by-one errors on edges compared to Intel */
( DebugTools : : CompareImageToFile { _manager , 1.0f , 0.06f } ) ) ;
@ -3506,7 +3506,7 @@ template<MeshVisualizerGL2D::Flag flag> void MeshVisualizerGLTest::renderDefault
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( _testDir , " MeshVisualizerTestFiles/defaults-objectid2D.tga " ) ,
/* SwiftShader has a few rounding errors on edges */
( DebugTools : : CompareImageToFile { _manager , 24.67f , 0.11f } ) ) ;
@ -3586,7 +3586,7 @@ template<MeshVisualizerGL3D::Flag flag> void MeshVisualizerGLTest::renderDefault
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( _testDir , " MeshVisualizerTestFiles/defaults-objectid3D.tga " ) ,
/* SwiftShader has a few rounding errors on edges and off-by-two
pixels */
@ -3686,7 +3686,7 @@ template<MeshVisualizerGL2D::Flag flag> void MeshVisualizerGLTest::renderDefault
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( _testDir , " MeshVisualizerTestFiles/defaults-instancedobjectid2D.tga " ) ,
/* SwiftShader has a few rounding errors on edges */
( DebugTools : : CompareImageToFile { _manager , 150.67f , 0.45f } ) ) ;
@ -3789,7 +3789,7 @@ template<MeshVisualizerGL3D::Flag flag> void MeshVisualizerGLTest::renderDefault
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( _testDir , " MeshVisualizerTestFiles/defaults-instancedobjectid3D.tga " ) ,
/* SwiftShader has a few rounding errors on edges */
( DebugTools : : CompareImageToFile { _manager , 150.67f , 0.165f } ) ) ;
@ -3864,7 +3864,7 @@ template<MeshVisualizerGL2D::Flag flag> void MeshVisualizerGLTest::renderDefault
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( _testDir , " MeshVisualizerTestFiles/defaults-vertexid2D.tga " ) ,
/* Minor differences on NVidia */
( DebugTools : : CompareImageToFile { _manager , 1.0f , 0.022f } ) ) ;
@ -3943,7 +3943,7 @@ template<MeshVisualizerGL3D::Flag flag> void MeshVisualizerGLTest::renderDefault
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( _testDir , " MeshVisualizerTestFiles/defaults-vertexid3D.tga " ) ,
/* Minor differences on NVidia */
( DebugTools : : CompareImageToFile { _manager , 1.0f , 0.018f } ) ) ;
@ -4047,7 +4047,7 @@ template<MeshVisualizerGL2D::Flag flag> void MeshVisualizerGLTest::renderDefault
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( _testDir , " MeshVisualizerTestFiles/defaults-primitiveid2D.tga " ) ,
/* SwiftShader has a few rounding errors on edges */
( DebugTools : : CompareImageToFile { _manager , 76.67f , 0.23f } ) ) ;
@ -4155,7 +4155,7 @@ template<MeshVisualizerGL3D::Flag flag> void MeshVisualizerGLTest::renderDefault
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( _testDir , " MeshVisualizerTestFiles/defaults-primitiveid3D.tga " ) ,
/* SwiftShader has a few rounding errors on edges */
( DebugTools : : CompareImageToFile { _manager , 88.34f , 0.071f } ) ) ;
@ -4237,7 +4237,7 @@ template<MeshVisualizerGL3D::Flag flag> void MeshVisualizerGLTest::renderDefault
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( _testDir , " MeshVisualizerTestFiles/defaults-tbn.tga " ) ,
/* AMD has off-by-one errors on edges compared to Intel */
( DebugTools : : CompareImageToFile { _manager , 1.0f , 0.06f } ) ) ;
@ -4376,7 +4376,7 @@ template<MeshVisualizerGL2D::Flag flag> void MeshVisualizerGLTest::renderWirefra
# endif
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( { _testDir , " MeshVisualizerTestFiles " , data . file } ) ,
( DebugTools : : CompareImageToFile { _manager , maxThreshold , meanThreshold } ) ) ;
}
@ -4393,7 +4393,7 @@ template<MeshVisualizerGL2D::Flag flag> void MeshVisualizerGLTest::renderWirefra
# endif
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( { _testDir , " MeshVisualizerTestFiles " , data . fileXfail } ) ,
( DebugTools : : CompareImageToFile { _manager , maxThreshold , meanThreshold } ) ) ;
}
@ -4547,7 +4547,7 @@ template<MeshVisualizerGL3D::Flag flag> void MeshVisualizerGLTest::renderWirefra
# endif
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( { _testDir , " MeshVisualizerTestFiles " , data . file } ) ,
( DebugTools : : CompareImageToFile { _manager , maxThreshold , meanThreshold } ) ) ;
}
@ -4564,7 +4564,7 @@ template<MeshVisualizerGL3D::Flag flag> void MeshVisualizerGLTest::renderWirefra
# endif
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( { _testDir , " MeshVisualizerTestFiles " , data . fileXfail } ) ,
( DebugTools : : CompareImageToFile { _manager , maxThreshold , meanThreshold } ) ) ;
}
@ -4780,7 +4780,7 @@ template<MeshVisualizerGL2D::Flag flag> void MeshVisualizerGLTest::renderObjectV
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( { _testDir , " MeshVisualizerTestFiles " , data . file2D } ) ,
/* AMD has slight off-by-one errors compared to Intel, SwiftShader a
bit more */
@ -5015,7 +5015,7 @@ template<MeshVisualizerGL3D::Flag flag> void MeshVisualizerGLTest::renderObjectV
# endif
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( { _testDir , " MeshVisualizerTestFiles " , data . file3D } ) ,
( DebugTools : : CompareImageToFile { _manager , maxThreshold , meanThreshold } ) ) ;
}
@ -5059,7 +5059,7 @@ void MeshVisualizerGLTest::renderWireframe3DPerspective() {
/* Slight rasterization differences on AMD. */
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( _testDir , " MeshVisualizerTestFiles/wireframe-perspective.tga " ) ,
( DebugTools : : CompareImageToFile { _manager , 0.667f , 0.002f } ) ) ;
}
@ -5270,7 +5270,7 @@ template<MeshVisualizerGL3D::Flag flag> void MeshVisualizerGLTest::renderTangent
# endif
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( { _testDir , " MeshVisualizerTestFiles " , data . file } ) ,
( DebugTools : : CompareImageToFile { _manager , maxThreshold , meanThreshold } ) ) ;
}
@ -5433,7 +5433,7 @@ template<MeshVisualizerGL2D::Flag flag> void MeshVisualizerGLTest::renderSkinnin
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( { _testDir , " MeshVisualizerTestFiles " , data . expected } ) ,
/* Minor differences on ARM Mali */
( DebugTools : : CompareImageToFile { _manager , 1.0f , 0.012f } ) ) ;
@ -5599,7 +5599,7 @@ template<MeshVisualizerGL3D::Flag flag> void MeshVisualizerGLTest::renderSkinnin
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( { _testDir , " MeshVisualizerTestFiles " , data . expected } ) ,
/* Minor differences on ARM Mali */
( DebugTools : : CompareImageToFile { _manager , 1.0f , 0.012f } ) ) ;
@ -5899,7 +5899,7 @@ template<MeshVisualizerGL2D::Flag flag> void MeshVisualizerGLTest::renderInstanc
*/
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( { _testDir , " MeshVisualizerTestFiles " , data . expected } ) ,
( DebugTools : : CompareImageToFile { _manager , data . maxThreshold , data . meanThreshold } ) ) ;
}
@ -6226,7 +6226,7 @@ template<MeshVisualizerGL3D::Flag flag> void MeshVisualizerGLTest::renderInstanc
*/
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( { _testDir , " MeshVisualizerTestFiles " , data . expected } ) ,
( DebugTools : : CompareImageToFile { _manager , data . maxThreshold , data . meanThreshold } ) ) ;
}
@ -6384,7 +6384,7 @@ template<MeshVisualizerGL2D::Flag flag> void MeshVisualizerGLTest::renderInstanc
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( _testDir , " MeshVisualizerTestFiles/skinning-instanced.tga " ) ,
/* SwiftShader has minor differences in the output, ARM Mali too,
NVidia as well */
@ -6546,7 +6546,7 @@ template<MeshVisualizerGL3D::Flag flag> void MeshVisualizerGLTest::renderInstanc
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( _testDir , " MeshVisualizerTestFiles/skinning-instanced.tga " ) ,
/* SwiftShader has minor differences in the output, ARM Mali too,
NVidia as well */
@ -6890,7 +6890,7 @@ void MeshVisualizerGLTest::renderMulti2D() {
*/
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( { _testDir , " MeshVisualizerTestFiles " , data . expected } ) ,
( DebugTools : : CompareImageToFile { _manager , data . maxThreshold , data . meanThreshold } ) ) ;
}
@ -7241,7 +7241,7 @@ void MeshVisualizerGLTest::renderMulti3D() {
*/
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( { _testDir , " MeshVisualizerTestFiles " , data . expected } ) ,
( DebugTools : : CompareImageToFile { _manager , data . maxThreshold , data . meanThreshold } ) ) ;
}
@ -7492,7 +7492,7 @@ void MeshVisualizerGLTest::renderMultiSkinningWireframe2D() {
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( _testDir , " MeshVisualizerTestFiles/skinning-multi.tga " ) ,
( DebugTools : : CompareImageToFile { _manager } ) ) ;
}
@ -7745,7 +7745,7 @@ void MeshVisualizerGLTest::renderMultiSkinningWireframe3D() {
CORRADE_COMPARE_WITH (
/* Dropping the alpha channel, as it's always 1.0 */
Containers : : arrayCast < Color3ub > ( _framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) ) ,
_framebuffer . read ( _framebuffer . viewport ( ) , { PixelFormat : : RGBA8Unorm } ) . pixels < Color4ub > ( ) . slice ( & Color4ub : : rgb ) ,
Utility : : Path : : join ( _testDir , " MeshVisualizerTestFiles/skinning-multi.tga " ) ,
( DebugTools : : CompareImageToFile { _manager } ) ) ;
}