cogl/tests: Port to cogl_texture_2d_new_from_data
Drop cogl_texture_new_from_data() in favour of the undeprecated cogl_texture_2d_new_from_data(). Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2355>
This commit is contained in:
parent
a2c999b6b1
commit
8ca20e709c
1 changed files with 15 additions and 12 deletions
|
@ -69,18 +69,21 @@ paint (TestState *state)
|
||||||
graphene_matrix_init_identity (&matrix);
|
graphene_matrix_init_identity (&matrix);
|
||||||
cogl_framebuffer_set_modelview_matrix (test_fb, &matrix);
|
cogl_framebuffer_set_modelview_matrix (test_fb, &matrix);
|
||||||
|
|
||||||
tex0 = cogl_texture_new_from_data (2, 2,
|
tex0 = cogl_texture_2d_new_from_data (test_ctx,
|
||||||
COGL_TEXTURE_NO_ATLAS,
|
2, 2,
|
||||||
COGL_PIXEL_FORMAT_RGB_888,
|
COGL_PIXEL_FORMAT_RGB_888,
|
||||||
COGL_PIXEL_FORMAT_ANY,
|
6,
|
||||||
6,
|
data0,
|
||||||
data0);
|
&error);
|
||||||
tex1 = cogl_texture_new_from_data (2, 2,
|
g_assert_no_error (error);
|
||||||
COGL_TEXTURE_NO_ATLAS,
|
|
||||||
COGL_PIXEL_FORMAT_RGB_888,
|
tex1 = cogl_texture_2d_new_from_data (test_ctx,
|
||||||
COGL_PIXEL_FORMAT_ANY,
|
2, 2,
|
||||||
6,
|
COGL_PIXEL_FORMAT_RGB_888,
|
||||||
data1);
|
6,
|
||||||
|
data1,
|
||||||
|
&error);
|
||||||
|
g_assert_no_error (error);
|
||||||
|
|
||||||
pipeline = cogl_pipeline_new (test_ctx);
|
pipeline = cogl_pipeline_new (test_ctx);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue