cogl: More explicitly mark formats as not supported

To ensure they don't get used by accident.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3244>
This commit is contained in:
Robert Mader 2023-09-13 14:09:02 +02:00
parent 4ff54997b6
commit 4c5b2e0e48
2 changed files with 4 additions and 2 deletions

View File

@ -457,7 +457,8 @@ _cogl_texture_driver_upload_supported (CoglContext *ctx,
case COGL_PIXEL_FORMAT_DEPTH_24_STENCIL_8:
case COGL_PIXEL_FORMAT_ANY:
case COGL_PIXEL_FORMAT_YUV:
return TRUE;
g_assert_not_reached ();
return FALSE;
}
g_assert_not_reached ();

View File

@ -511,7 +511,8 @@ _cogl_texture_driver_upload_supported (CoglContext *ctx,
case COGL_PIXEL_FORMAT_DEPTH_24_STENCIL_8:
case COGL_PIXEL_FORMAT_ANY:
case COGL_PIXEL_FORMAT_YUV:
return TRUE;
g_assert_not_reached ();
return FALSE;
}
g_assert_not_reached ();