mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 04:22:05 +00:00
tests/cogl: Migrate depth test test
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
67a9226e92
commit
8c41b3b4a1
@ -1,6 +1,5 @@
|
||||
cogl_test_conformance_sources = [
|
||||
'test-conform-main.c',
|
||||
'test-depth-test.c',
|
||||
'test-color-hsl.c',
|
||||
'test-backface-culling.c',
|
||||
'test-just-vertex-shader.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_depth_test, 0, 0);
|
||||
ADD_TEST (test_backface_culling, 0, TEST_REQUIREMENT_NPOT);
|
||||
ADD_TEST (test_layer_remove, 0, 0);
|
||||
|
||||
|
@ -2,6 +2,7 @@ cogl_tests = [
|
||||
'test-atlas-migration',
|
||||
'test-blend-strings',
|
||||
'test-blend',
|
||||
'test-depth-test',
|
||||
]
|
||||
|
||||
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"
|
||||
|
||||
#define QUAD_WIDTH 20
|
||||
|
||||
@ -252,7 +249,7 @@ paint (TestState *state)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
test_depth_test (void)
|
||||
{
|
||||
TestState state;
|
||||
@ -269,3 +266,6 @@ test_depth_test (void)
|
||||
g_print ("OK\n");
|
||||
}
|
||||
|
||||
COGL_TEST_SUITE (
|
||||
g_test_add_func ("/depth-test", test_depth_test);
|
||||
)
|
Loading…
Reference in New Issue
Block a user