cogl/driver: Remove GError from context_init

It is not used by anyone, let's just remove it.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1152
This commit is contained in:
Georges Basile Stavracas Neto 2020-03-26 19:04:38 -03:00
parent 05341221d4
commit 3956ffd5e8
6 changed files with 7 additions and 11 deletions

View File

@ -211,7 +211,7 @@ cogl_context_new (CoglDisplay *display,
return NULL;
}
if (!context->driver_vtable->context_init (context, error))
if (!context->driver_vtable->context_init (context))
{
cogl_object_unref (display);
g_free (context);

View File

@ -41,7 +41,7 @@ typedef struct _CoglDriverVtable CoglDriverVtable;
struct _CoglDriverVtable
{
gboolean
(* context_init) (CoglContext *context, GError **error);
(* context_init) (CoglContext *context);
void
(* context_deinit) (CoglContext *context);

View File

@ -77,8 +77,7 @@ _cogl_gl_error_to_string (GLenum error_code);
#endif /* COGL_GL_DEBUG */
gboolean
_cogl_driver_gl_context_init (CoglContext *context,
GError **error);
_cogl_driver_gl_context_init (CoglContext *context);
void
_cogl_driver_gl_context_deinit (CoglContext *context);

View File

@ -76,8 +76,7 @@ _cogl_gl_error_to_string (GLenum error_code)
#endif /* COGL_GL_DEBUG */
gboolean
_cogl_driver_gl_context_init (CoglContext *context,
GError **error)
_cogl_driver_gl_context_init (CoglContext *context)
{
context->texture_units =
g_array_new (FALSE, FALSE, sizeof (CoglTextureUnit));

View File

@ -44,11 +44,10 @@
#include "driver/gl/cogl-buffer-gl-private.h"
static gboolean
_cogl_driver_gl_real_context_init (CoglContext *context,
GError **error)
_cogl_driver_gl_real_context_init (CoglContext *context)
{
_cogl_driver_gl_context_init (context, error);
_cogl_driver_gl_context_init (context);
if ((context->driver == COGL_DRIVER_GL3))
{

View File

@ -53,8 +53,7 @@ _cogl_driver_update_features (CoglContext *ctx,
}
static gboolean
_cogl_driver_nop_context_init( CoglContext *context,
GError **error)
_cogl_driver_nop_context_init (CoglContext *context)
{
return TRUE;
}