cogl: Move has_feature to Context namespace

That is where it belongs anyways..

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3895>
This commit is contained in:
Bilal Elmoussaoui
2024-07-22 10:58:51 +02:00
parent 21bc7432dc
commit 6da869d575
23 changed files with 53 additions and 51 deletions

View File

@ -34,7 +34,7 @@ test_map_buffer_range (void)
CoglAttribute *tex_coord_attribute;
CoglPrimitive *primitive;
if (!cogl_has_feature (test_ctx, COGL_FEATURE_ID_MAP_BUFFER_FOR_WRITE))
if (!cogl_context_has_feature (test_ctx, COGL_FEATURE_ID_MAP_BUFFER_FOR_WRITE))
{
g_test_skip ("Missing map buffer for write capability");
return;

View File

@ -156,7 +156,7 @@ test_offscreen_texture_formats_store_fp16 (void)
};
int i;
if (!cogl_has_feature (test_ctx, COGL_FEATURE_ID_TEXTURE_HALF_FLOAT))
if (!cogl_context_has_feature (test_ctx, COGL_FEATURE_ID_TEXTURE_HALF_FLOAT))
{
g_test_skip ("Driver does not support fp formats");
return;
@ -301,7 +301,7 @@ test_offscreen_texture_formats_store_rgb10 (void)
};
int i;
if (!cogl_has_feature (test_ctx, COGL_FEATURE_ID_TEXTURE_RGBA1010102))
if (!cogl_context_has_feature (test_ctx, COGL_FEATURE_ID_TEXTURE_RGBA1010102))
{
g_test_skip ("Driver does not support 10bpc formats");
return;
@ -540,7 +540,7 @@ test_offscreen_texture_formats_paint_fp16 (void)
};
int i;
if (!cogl_has_feature (test_ctx, COGL_FEATURE_ID_TEXTURE_HALF_FLOAT))
if (!cogl_context_has_feature (test_ctx, COGL_FEATURE_ID_TEXTURE_HALF_FLOAT))
{
g_test_skip ("Driver does not support fp formats");
return;
@ -670,7 +670,7 @@ test_offscreen_texture_formats_paint_rgb10 (void)
};
int i;
if (!cogl_has_feature (test_ctx, COGL_FEATURE_ID_TEXTURE_RGBA1010102))
if (!cogl_context_has_feature (test_ctx, COGL_FEATURE_ID_TEXTURE_RGBA1010102))
{
g_test_skip ("Driver does not support 10bpc formats");
return;

View File

@ -36,7 +36,7 @@ test_texture_rg (void)
int fb_width, fb_height;
int x, y;
if (!cogl_has_feature (test_ctx, COGL_FEATURE_ID_TEXTURE_RG))
if (!cogl_context_has_feature (test_ctx, COGL_FEATURE_ID_TEXTURE_RG))
{
g_test_skip ("Missing TEXTURE_RG feature");
return;