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:
parent
05341221d4
commit
3956ffd5e8
@ -211,7 +211,7 @@ cogl_context_new (CoglDisplay *display,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!context->driver_vtable->context_init (context, error))
|
if (!context->driver_vtable->context_init (context))
|
||||||
{
|
{
|
||||||
cogl_object_unref (display);
|
cogl_object_unref (display);
|
||||||
g_free (context);
|
g_free (context);
|
||||||
|
@ -41,7 +41,7 @@ typedef struct _CoglDriverVtable CoglDriverVtable;
|
|||||||
struct _CoglDriverVtable
|
struct _CoglDriverVtable
|
||||||
{
|
{
|
||||||
gboolean
|
gboolean
|
||||||
(* context_init) (CoglContext *context, GError **error);
|
(* context_init) (CoglContext *context);
|
||||||
|
|
||||||
void
|
void
|
||||||
(* context_deinit) (CoglContext *context);
|
(* context_deinit) (CoglContext *context);
|
||||||
|
@ -77,8 +77,7 @@ _cogl_gl_error_to_string (GLenum error_code);
|
|||||||
#endif /* COGL_GL_DEBUG */
|
#endif /* COGL_GL_DEBUG */
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
_cogl_driver_gl_context_init (CoglContext *context,
|
_cogl_driver_gl_context_init (CoglContext *context);
|
||||||
GError **error);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
_cogl_driver_gl_context_deinit (CoglContext *context);
|
_cogl_driver_gl_context_deinit (CoglContext *context);
|
||||||
|
@ -76,8 +76,7 @@ _cogl_gl_error_to_string (GLenum error_code)
|
|||||||
#endif /* COGL_GL_DEBUG */
|
#endif /* COGL_GL_DEBUG */
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
_cogl_driver_gl_context_init (CoglContext *context,
|
_cogl_driver_gl_context_init (CoglContext *context)
|
||||||
GError **error)
|
|
||||||
{
|
{
|
||||||
context->texture_units =
|
context->texture_units =
|
||||||
g_array_new (FALSE, FALSE, sizeof (CoglTextureUnit));
|
g_array_new (FALSE, FALSE, sizeof (CoglTextureUnit));
|
||||||
|
@ -44,11 +44,10 @@
|
|||||||
#include "driver/gl/cogl-buffer-gl-private.h"
|
#include "driver/gl/cogl-buffer-gl-private.h"
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
_cogl_driver_gl_real_context_init (CoglContext *context,
|
_cogl_driver_gl_real_context_init (CoglContext *context)
|
||||||
GError **error)
|
|
||||||
{
|
{
|
||||||
|
|
||||||
_cogl_driver_gl_context_init (context, error);
|
_cogl_driver_gl_context_init (context);
|
||||||
|
|
||||||
if ((context->driver == COGL_DRIVER_GL3))
|
if ((context->driver == COGL_DRIVER_GL3))
|
||||||
{
|
{
|
||||||
|
@ -53,8 +53,7 @@ _cogl_driver_update_features (CoglContext *ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
_cogl_driver_nop_context_init( CoglContext *context,
|
_cogl_driver_nop_context_init (CoglContext *context)
|
||||||
GError **error)
|
|
||||||
{
|
{
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user