mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
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;
|
||||
}
|
||||
|
||||
if (!context->driver_vtable->context_init (context, error))
|
||||
if (!context->driver_vtable->context_init (context))
|
||||
{
|
||||
cogl_object_unref (display);
|
||||
g_free (context);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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));
|
||||
|
@ -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))
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user