mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 03:20:46 -05:00
tests/cogl: Migrate alpha texture test
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
629c23b229
commit
85ad013b2d
@ -1,6 +1,5 @@
|
|||||||
cogl_test_conformance_sources = [
|
cogl_test_conformance_sources = [
|
||||||
'test-conform-main.c',
|
'test-conform-main.c',
|
||||||
'test-alpha-textures.c',
|
|
||||||
'test-texture-get-set-data.c',
|
'test-texture-get-set-data.c',
|
||||||
'test-framebuffer-get-bits.c',
|
'test-framebuffer-get-bits.c',
|
||||||
'test-primitive-and-journal.c',
|
'test-primitive-and-journal.c',
|
||||||
|
@ -66,7 +66,6 @@ main (int argc, char **argv)
|
|||||||
UNPORTED_TEST (test_texture_rectangle);
|
UNPORTED_TEST (test_texture_rectangle);
|
||||||
UNPORTED_TEST (test_texture_pixmap_x11);
|
UNPORTED_TEST (test_texture_pixmap_x11);
|
||||||
ADD_TEST (test_texture_get_set_data, 0, 0);
|
ADD_TEST (test_texture_get_set_data, 0, 0);
|
||||||
ADD_TEST (test_alpha_textures, 0, 0);
|
|
||||||
|
|
||||||
UNPORTED_TEST (test_vertex_buffer_contiguous);
|
UNPORTED_TEST (test_vertex_buffer_contiguous);
|
||||||
UNPORTED_TEST (test_vertex_buffer_interleved);
|
UNPORTED_TEST (test_vertex_buffer_interleved);
|
||||||
|
@ -6,7 +6,6 @@ void test_path_clip (void);
|
|||||||
void test_depth_test (void);
|
void test_depth_test (void);
|
||||||
void test_backface_culling (void);
|
void test_backface_culling (void);
|
||||||
void test_texture_get_set_data (void);
|
void test_texture_get_set_data (void);
|
||||||
void test_alpha_textures (void);
|
|
||||||
void test_framebuffer_get_bits (void);
|
void test_framebuffer_get_bits (void);
|
||||||
void test_primitive_and_journal (void);
|
void test_primitive_and_journal (void);
|
||||||
void test_copy_replace_texture (void);
|
void test_copy_replace_texture (void);
|
||||||
|
@ -29,6 +29,7 @@ cogl_tests = [
|
|||||||
[ 'test-alpha-test', [] ],
|
[ 'test-alpha-test', [] ],
|
||||||
[ 'test-map-buffer-range', [] ],
|
[ 'test-map-buffer-range', [] ],
|
||||||
[ 'test-npot-texture', [] ],
|
[ 'test-npot-texture', [] ],
|
||||||
|
[ 'test-alpha-textures', [] ],
|
||||||
]
|
]
|
||||||
|
|
||||||
cogl_test_conformance_includes = [
|
cogl_test_conformance_includes = [
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "test-declarations.h"
|
#include "tests/cogl-test-utils.h"
|
||||||
#include "test-utils.h"
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
create_pipeline (CoglTexture **tex_out,
|
create_pipeline (CoglTexture **tex_out,
|
||||||
@ -45,7 +44,7 @@ create_pipeline (CoglTexture **tex_out,
|
|||||||
*tex_out = tex;
|
*tex_out = tex;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
test_alpha_textures (void)
|
test_alpha_textures (void)
|
||||||
{
|
{
|
||||||
CoglTexture *tex1, *tex2;
|
CoglTexture *tex1, *tex2;
|
||||||
@ -122,3 +121,6 @@ test_alpha_textures (void)
|
|||||||
g_print ("OK\n");
|
g_print ("OK\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
COGL_TEST_SUITE (
|
||||||
|
g_test_add_func ("/alpha-textures", test_alpha_textures);
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user