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:
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user