cogl: Remove COGL_INVALID_HANDLE

Just use `NULL`, which is the normal C convention

https://gitlab.gnome.org/GNOME/mutter/merge_requests/451
This commit is contained in:
Niels De Graef
2019-02-20 14:53:01 +01:00
committed by Jonas Ådahl
parent 23f77a1b63
commit 0d0286d59e
17 changed files with 51 additions and 60 deletions

View File

@ -256,7 +256,7 @@ test_coglbox_map (ClutterActor *actor)
cogl_pop_framebuffer ();
if (priv->offscreen_id == COGL_INVALID_HANDLE)
if (priv->offscreen_id == NULL)
printf ("Failed creating offscreen to texture!\n");
}
@ -281,7 +281,7 @@ test_coglbox_init (TestCoglbox *self)
COGL_TEXTURE_NONE,
COGL_PIXEL_FORMAT_RGB_888);
if (priv->texture_id == COGL_INVALID_HANDLE)
if (priv->texture_id == NULL)
printf ("Failed creating texture with size!\n");
}

View File

@ -320,7 +320,7 @@ test_cogl_shader_glsl_main (int argc, char *argv[])
COGL_TEXTURE_NO_ATLAS,
COGL_PIXEL_FORMAT_ANY,
&error);
if (redhand == COGL_INVALID_HANDLE)
if (redhand == NULL)
g_error ("image load failed: %s", error->message);
material = cogl_material_new ();

View File

@ -259,7 +259,7 @@ test_coglbox_init (TestCoglbox *self)
COGL_TEXTURE_NONE,
COGL_PIXEL_FORMAT_ANY,
&error);
if (priv->sliced_tex == COGL_INVALID_HANDLE)
if (priv->sliced_tex == NULL)
{
if (error)
{
@ -276,7 +276,7 @@ test_coglbox_init (TestCoglbox *self)
COGL_TEXTURE_NO_SLICING,
COGL_PIXEL_FORMAT_ANY,
&error);
if (priv->not_sliced_tex == COGL_INVALID_HANDLE)
if (priv->not_sliced_tex == NULL)
{
if (error)
{