mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
tests/cogl: Migrate npot texture test
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
This commit is contained in:
parent
33c582d33a
commit
629c23b229
@ -1,6 +1,5 @@
|
||||
cogl_test_conformance_sources = [
|
||||
'test-conform-main.c',
|
||||
'test-npot-texture.c',
|
||||
'test-alpha-textures.c',
|
||||
'test-texture-get-set-data.c',
|
||||
'test-framebuffer-get-bits.c',
|
||||
|
@ -61,7 +61,6 @@ main (int argc, char **argv)
|
||||
UNPORTED_TEST (test_materials);
|
||||
UNPORTED_TEST (test_readpixels);
|
||||
|
||||
ADD_TEST (test_npot_texture, 0, 0);
|
||||
UNPORTED_TEST (test_multitexture);
|
||||
UNPORTED_TEST (test_texture_mipmaps);
|
||||
UNPORTED_TEST (test_texture_rectangle);
|
||||
|
@ -5,7 +5,6 @@ void test_path (void);
|
||||
void test_path_clip (void);
|
||||
void test_depth_test (void);
|
||||
void test_backface_culling (void);
|
||||
void test_npot_texture (void);
|
||||
void test_texture_get_set_data (void);
|
||||
void test_alpha_textures (void);
|
||||
void test_framebuffer_get_bits (void);
|
||||
|
@ -28,6 +28,7 @@ cogl_tests = [
|
||||
[ 'test-layer-remove', [] ],
|
||||
[ 'test-alpha-test', [] ],
|
||||
[ 'test-map-buffer-range', [] ],
|
||||
[ 'test-npot-texture', [] ],
|
||||
]
|
||||
|
||||
cogl_test_conformance_includes = [
|
||||
|
@ -2,8 +2,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "test-declarations.h"
|
||||
#include "test-utils.h"
|
||||
#include "tests/cogl-test-utils.h"
|
||||
|
||||
/* Non-power-of-two sized texture that should cause slicing */
|
||||
#define TEXTURE_SIZE 384
|
||||
@ -142,7 +141,7 @@ paint (void)
|
||||
cogl_object_unref (texture);
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
test_npot_texture (void)
|
||||
{
|
||||
cogl_framebuffer_orthographic (test_fb,
|
||||
@ -159,3 +158,6 @@ test_npot_texture (void)
|
||||
g_print ("OK\n");
|
||||
}
|
||||
|
||||
COGL_TEST_SUITE (
|
||||
g_test_add_func ("/npot-texture", test_npot_texture);
|
||||
)
|
Loading…
Reference in New Issue
Block a user