1
0
Fork 0

tests/cogl: Migrate backface-culling test

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
Jonas Ådahl 2022-08-04 19:34:12 +02:00 committed by Marge Bot
parent 66004d82c7
commit f3a821b4cd
4 changed files with 6 additions and 7 deletions

View file

@ -1,6 +1,5 @@
cogl_test_conformance_sources = [
'test-conform-main.c',
'test-backface-culling.c',
'test-just-vertex-shader.c',
'test-pipeline-user-matrix.c',
'test-pipeline-uniforms.c',

View file

@ -62,7 +62,6 @@ main (int argc, char **argv)
ADD_TEST (test_pipeline_user_matrix, 0, 0);
ADD_TEST (test_premult, 0, 0);
UNPORTED_TEST (test_readpixels);
ADD_TEST (test_backface_culling, 0, 0);
ADD_TEST (test_layer_remove, 0, 0);
ADD_TEST (test_sparse_pipeline, 0, 0);

View file

@ -4,6 +4,7 @@ cogl_tests = [
'test-blend',
'test-depth-test',
'test-color-hsl',
'test-backface-culling',
]
cogl_test_conformance_includes = [

View file

@ -1,11 +1,8 @@
#define COGL_VERSION_MIN_REQUIRED COGL_VERSION_1_0
#include <cogl/cogl.h>
#include <string.h>
#include "test-declarations.h"
#include "test-utils.h"
#include "tests/cogl-test-utils.h"
/* Size the texture so that it is just off a power of two to encourage
it so use software tiling when NPOTs aren't available */
@ -286,7 +283,7 @@ make_texture (void)
return tex;
}
void
static void
test_backface_culling (void)
{
TestState state;
@ -316,3 +313,6 @@ test_backface_culling (void)
g_print ("OK\n");
}
COGL_TEST_SUITE (
g_test_add_func ("/backface-culling", test_backface_culling);
)