mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00:00
tests/cogl: Migrate backface-culling test
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
66004d82c7
commit
f3a821b4cd
@ -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',
|
||||
|
@ -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);
|
||||
|
@ -4,6 +4,7 @@ cogl_tests = [
|
||||
'test-blend',
|
||||
'test-depth-test',
|
||||
'test-color-hsl',
|
||||
'test-backface-culling',
|
||||
]
|
||||
|
||||
cogl_test_conformance_includes = [
|
||||
|
@ -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);
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user