diff options
author | Robert Bragg <robert@linux.intel.com> | 2012-09-07 15:26:34 +0100 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2012-09-17 23:06:20 +0100 |
commit | 0f0ee4a9090c72646ae6fb47d363caf6180ed8ff (patch) | |
tree | 482a9919c05ec2db62ec1f54bc33264d421e5447 /cogl/cogl-texture-private.h | |
parent | ea3d8eca9123594e696b0b8ee36db99d608830b9 (diff) | |
download | cogl-0f0ee4a9090c72646ae6fb47d363caf6180ed8ff.tar.gz |
texture: Add a context pointer to each texture
As part of our on-going goal to remove our dependence on a global Cogl
context this patch adds a pointer to the context to each CoglTexture
so that the various texture apis no longer need to use
_COGL_GET_CONTEXT.
Reviewed-by: Neil Roberts <neil@linux.intel.com>
(cherry picked from commit 83131072eea395f18ab0525ea2446f443a6033b1)
Diffstat (limited to 'cogl/cogl-texture-private.h')
-rw-r--r-- | cogl/cogl-texture-private.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cogl/cogl-texture-private.h b/cogl/cogl-texture-private.h index 1eeb9fdd..a3888de2 100644 --- a/cogl/cogl-texture-private.h +++ b/cogl/cogl-texture-private.h @@ -136,8 +136,9 @@ struct _CoglTextureVtable struct _CoglTexture { - CoglObject _parent; - GList *framebuffers; + CoglObject _parent; + CoglContext *context; + GList *framebuffers; const CoglTextureVtable *vtable; }; @@ -170,6 +171,7 @@ struct _CoglTexturePixel void _cogl_texture_init (CoglTexture *texture, + CoglContext *ctx, const CoglTextureVtable *vtable); void |