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:

committed by
Jonas Ådahl

parent
23f77a1b63
commit
0d0286d59e
@ -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");
|
||||
}
|
||||
|
||||
|
@ -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 ();
|
||||
|
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user