mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
cogl: Add a slot for driver-private state to CoglContext
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1194
This commit is contained in:
parent
4ff58cc63f
commit
e03c75bac7
@ -73,6 +73,8 @@ struct _CoglContext
|
|||||||
const CoglDriverVtable *driver_vtable;
|
const CoglDriverVtable *driver_vtable;
|
||||||
const CoglTextureDriver *texture_driver;
|
const CoglTextureDriver *texture_driver;
|
||||||
|
|
||||||
|
void *driver_context;
|
||||||
|
|
||||||
int glsl_major;
|
int glsl_major;
|
||||||
int glsl_minor;
|
int glsl_minor;
|
||||||
|
|
||||||
|
@ -76,6 +76,11 @@ _cogl_gl_error_to_string (GLenum error_code);
|
|||||||
|
|
||||||
#endif /* COGL_GL_DEBUG */
|
#endif /* COGL_GL_DEBUG */
|
||||||
|
|
||||||
|
typedef struct _CoglGLContext CoglGLContext; /* opaque for the moment */
|
||||||
|
|
||||||
|
CoglGLContext *
|
||||||
|
_cogl_driver_gl_context (CoglContext *context);
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
_cogl_driver_gl_context_init (CoglContext *context);
|
_cogl_driver_gl_context_init (CoglContext *context);
|
||||||
|
|
||||||
|
@ -75,6 +75,12 @@ _cogl_gl_error_to_string (GLenum error_code)
|
|||||||
}
|
}
|
||||||
#endif /* COGL_GL_DEBUG */
|
#endif /* COGL_GL_DEBUG */
|
||||||
|
|
||||||
|
CoglGLContext *
|
||||||
|
_cogl_driver_gl_context (CoglContext *context)
|
||||||
|
{
|
||||||
|
return context->driver_context;
|
||||||
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
_cogl_driver_gl_context_init (CoglContext *context)
|
_cogl_driver_gl_context_init (CoglContext *context)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user