mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
2007-06-29 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-texture.c: (texture_upload_data): Fix a SEGV for GL ES textures. * clutter/cogl/gles/cogl.c: (cogl_setup_viewport): Tweak default z_camera for 60 degrees like GL. * clutter/egl/clutter-backend-egl.c:: * clutter/egl/clutter-stage-egl.c: Fix edpy usage (thanks to Kaj Gronholm).
This commit is contained in:
@ -518,6 +518,11 @@ texture_upload_data (ClutterTexture *texture,
|
||||
src_w = priv->x_tiles[x].size;
|
||||
src_h = priv->y_tiles[y].size;
|
||||
|
||||
pixtmp = gdk_pixbuf_new (GDK_COLORSPACE_RGB,
|
||||
has_alpha,
|
||||
8,
|
||||
src_w, src_h);
|
||||
|
||||
/* clip */
|
||||
if (priv->x_tiles[x].pos + src_w > priv->width)
|
||||
src_w = priv->width - priv->x_tiles[x].pos;
|
||||
@ -525,11 +530,6 @@ texture_upload_data (ClutterTexture *texture,
|
||||
if (priv->y_tiles[y].pos + src_h > priv->height)
|
||||
src_h = priv->height - priv->y_tiles[y].pos;
|
||||
|
||||
pixtmp = gdk_pixbuf_new (GDK_COLORSPACE_RGB,
|
||||
has_alpha,
|
||||
8,
|
||||
src_w, src_h);
|
||||
|
||||
gdk_pixbuf_copy_area (master_pixbuf,
|
||||
priv->x_tiles[x].pos,
|
||||
priv->y_tiles[y].pos,
|
||||
|
Reference in New Issue
Block a user