mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
Add a context parameter to all of the texture driver virtuals
All of the texture driver virtual functions now take an explicit CoglContext parameter as a step towards removing the global context.
This commit is contained in:
@ -2062,7 +2062,7 @@ cogl_framebuffer_read_pixels_into_bitmap (CoglFramebuffer *framebuffer,
|
||||
bpp = _cogl_pixel_format_get_bytes_per_pixel (read_format);
|
||||
rowstride = cogl_bitmap_get_rowstride (tmp_bmp);
|
||||
|
||||
ctx->texture_driver->prep_gl_for_pixels_download (rowstride, bpp);
|
||||
ctx->texture_driver->prep_gl_for_pixels_download (ctx, rowstride, bpp);
|
||||
|
||||
tmp_data = _cogl_bitmap_bind (tmp_bmp,
|
||||
COGL_BUFFER_ACCESS_WRITE,
|
||||
@ -2110,7 +2110,7 @@ cogl_framebuffer_read_pixels_into_bitmap (CoglFramebuffer *framebuffer,
|
||||
|
||||
bpp = _cogl_pixel_format_get_bytes_per_pixel (bmp_format);
|
||||
|
||||
ctx->texture_driver->prep_gl_for_pixels_download (rowstride, bpp);
|
||||
ctx->texture_driver->prep_gl_for_pixels_download (ctx, rowstride, bpp);
|
||||
|
||||
pixels = _cogl_bitmap_bind (shared_bmp,
|
||||
COGL_BUFFER_ACCESS_WRITE,
|
||||
|
Reference in New Issue
Block a user