mirror of
https://github.com/brl/mutter.git
synced 2025-02-21 07: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 = [
|
cogl_test_conformance_sources = [
|
||||||
'test-conform-main.c',
|
'test-conform-main.c',
|
||||||
'test-backface-culling.c',
|
|
||||||
'test-just-vertex-shader.c',
|
'test-just-vertex-shader.c',
|
||||||
'test-pipeline-user-matrix.c',
|
'test-pipeline-user-matrix.c',
|
||||||
'test-pipeline-uniforms.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_pipeline_user_matrix, 0, 0);
|
||||||
ADD_TEST (test_premult, 0, 0);
|
ADD_TEST (test_premult, 0, 0);
|
||||||
UNPORTED_TEST (test_readpixels);
|
UNPORTED_TEST (test_readpixels);
|
||||||
ADD_TEST (test_backface_culling, 0, 0);
|
|
||||||
ADD_TEST (test_layer_remove, 0, 0);
|
ADD_TEST (test_layer_remove, 0, 0);
|
||||||
|
|
||||||
ADD_TEST (test_sparse_pipeline, 0, 0);
|
ADD_TEST (test_sparse_pipeline, 0, 0);
|
||||||
|
@ -4,6 +4,7 @@ cogl_tests = [
|
|||||||
'test-blend',
|
'test-blend',
|
||||||
'test-depth-test',
|
'test-depth-test',
|
||||||
'test-color-hsl',
|
'test-color-hsl',
|
||||||
|
'test-backface-culling',
|
||||||
]
|
]
|
||||||
|
|
||||||
cogl_test_conformance_includes = [
|
cogl_test_conformance_includes = [
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
#define COGL_VERSION_MIN_REQUIRED COGL_VERSION_1_0
|
|
||||||
|
|
||||||
#include <cogl/cogl.h>
|
#include <cogl/cogl.h>
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "test-declarations.h"
|
#include "tests/cogl-test-utils.h"
|
||||||
#include "test-utils.h"
|
|
||||||
|
|
||||||
/* Size the texture so that it is just off a power of two to encourage
|
/* 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 */
|
it so use software tiling when NPOTs aren't available */
|
||||||
@ -286,7 +283,7 @@ make_texture (void)
|
|||||||
return tex;
|
return tex;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
test_backface_culling (void)
|
test_backface_culling (void)
|
||||||
{
|
{
|
||||||
TestState state;
|
TestState state;
|
||||||
@ -316,3 +313,6 @@ test_backface_culling (void)
|
|||||||
g_print ("OK\n");
|
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