diff options
4 files changed, 55 insertions, 4 deletions
diff --git a/meta/recipes-graphics/mutter/mutter.inc b/meta/recipes-graphics/mutter/mutter.inc index 60ceed4a96..d87c30eda3 100644 --- a/meta/recipes-graphics/mutter/mutter.inc +++ b/meta/recipes-graphics/mutter/mutter.inc | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | SECTION = "x11/wm" | 1 | SECTION = "x11/wm" |
| 2 | DESCRIPTION = "Metacity is the boring window manager for the adult in you. Mutter is metacity + clutter." | 2 | DESCRIPTION = "Metacity is the boring window manager for the adult in you. Mutter is metacity + clutter." |
| 3 | LICENSE = "GPLv2" | 3 | LICENSE = "GPLv2" |
| 4 | DEPENDS = "startup-notification gtk+ gconf clutter-1.4 gdk-pixbuf-native intltool glib-2.0-native" | 4 | DEPENDS = "startup-notification gtk+ gconf clutter-1.6 gdk-pixbuf-native intltool glib-2.0-native" |
| 5 | # gobject-introspection | 5 | # gobject-introspection |
| 6 | inherit gnome update-alternatives | 6 | inherit gnome update-alternatives |
| 7 | 7 | ||
diff --git a/meta/recipes-graphics/mutter/mutter/fix_CGL_TEXTURE_RECTANGLE_ARB.patch b/meta/recipes-graphics/mutter/mutter/fix_CGL_TEXTURE_RECTANGLE_ARB.patch new file mode 100644 index 0000000000..13197e5703 --- /dev/null +++ b/meta/recipes-graphics/mutter/mutter/fix_CGL_TEXTURE_RECTANGLE_ARB.patch | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | Update the usage of CGL_TEXTURE_RECTANGLE_ARB to GL_TEXTURE_RECTANGLE_ARB | ||
| 2 | |||
| 3 | Upstream-Status: Pending | ||
| 4 | |||
| 5 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
| 6 | |||
| 7 | Index: mutter-2.28.1_0.0/src/compositor/mutter-shaped-texture.c | ||
| 8 | =================================================================== | ||
| 9 | --- mutter-2.28.1_0.0.orig/src/compositor/mutter-shaped-texture.c | ||
| 10 | +++ mutter-2.28.1_0.0/src/compositor/mutter-shaped-texture.c | ||
| 11 | @@ -151,7 +151,7 @@ mutter_shaped_texture_dirty_mask (Mutter | ||
| 12 | cogl_texture_get_gl_texture (priv->mask_texture, | ||
| 13 | &mask_gl_tex, &mask_gl_target); | ||
| 14 | |||
| 15 | - if (mask_gl_target == CGL_TEXTURE_RECTANGLE_ARB) | ||
| 16 | + if (mask_gl_target == GL_TEXTURE_RECTANGLE_ARB) | ||
| 17 | glDeleteTextures (1, &mask_gl_tex); | ||
| 18 | |||
| 19 | cogl_texture_unref (priv->mask_texture); | ||
| 20 | @@ -214,23 +214,23 @@ mutter_shaped_texture_ensure_mask (Mutte | ||
| 21 | |||
| 22 | cogl_texture_get_gl_texture (paint_tex, NULL, &paint_gl_target); | ||
| 23 | |||
| 24 | - if (paint_gl_target == CGL_TEXTURE_RECTANGLE_ARB) | ||
| 25 | + if (paint_gl_target == GL_TEXTURE_RECTANGLE_ARB) | ||
| 26 | { | ||
| 27 | GLuint tex; | ||
| 28 | |||
| 29 | glGenTextures (1, &tex); | ||
| 30 | - glBindTexture (CGL_TEXTURE_RECTANGLE_ARB, tex); | ||
| 31 | + glBindTexture (GL_TEXTURE_RECTANGLE_ARB, tex); | ||
| 32 | glPixelStorei (GL_UNPACK_ROW_LENGTH, tex_width); | ||
| 33 | glPixelStorei (GL_UNPACK_ALIGNMENT, 1); | ||
| 34 | glPixelStorei (GL_UNPACK_SKIP_ROWS, 0); | ||
| 35 | glPixelStorei (GL_UNPACK_SKIP_PIXELS, 0); | ||
| 36 | - glTexImage2D (CGL_TEXTURE_RECTANGLE_ARB, 0, | ||
| 37 | + glTexImage2D (GL_TEXTURE_RECTANGLE_ARB, 0, | ||
| 38 | GL_ALPHA, tex_width, tex_height, | ||
| 39 | 0, GL_ALPHA, GL_UNSIGNED_BYTE, mask_data); | ||
| 40 | |||
| 41 | priv->mask_texture | ||
| 42 | = cogl_texture_new_from_foreign (tex, | ||
| 43 | - CGL_TEXTURE_RECTANGLE_ARB, | ||
| 44 | + GL_TEXTURE_RECTANGLE_ARB, | ||
| 45 | tex_width, tex_height, | ||
| 46 | 0, 0, | ||
| 47 | COGL_PIXEL_FORMAT_A_8); | ||
diff --git a/meta/recipes-graphics/mutter/mutter_2.28.1.bb b/meta/recipes-graphics/mutter/mutter_2.28.1.bb index e4c185a0b0..50f26473f2 100644 --- a/meta/recipes-graphics/mutter/mutter_2.28.1.bb +++ b/meta/recipes-graphics/mutter/mutter_2.28.1.bb | |||
| @@ -1,11 +1,14 @@ | |||
| 1 | require mutter.inc | 1 | require mutter.inc |
| 2 | 2 | ||
| 3 | PR = "r1" | ||
| 4 | |||
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 4 | 6 | ||
| 5 | SRC_URI = "http://download.moblin.org/sources/mutter/2.28/mutter-2.28.1_0.0.tar.bz2 \ | 7 | SRC_URI = "http://download.moblin.org/sources/mutter/2.28/mutter-2.28.1_0.0.tar.bz2 \ |
| 6 | file://nodocs.patch;patch=1 \ | 8 | file://nodocs.patch \ |
| 7 | file://nozenity.patch;patch=1 \ | 9 | file://nozenity.patch \ |
| 8 | file://fix_pkgconfig.patch;patch=1 \ | 10 | file://fix_pkgconfig.patch \ |
| 11 | file://fix_CGL_TEXTURE_RECTANGLE_ARB.patch \ | ||
| 9 | " | 12 | " |
| 10 | 13 | ||
| 11 | S = "${WORKDIR}/mutter-2.28.1_0.0" | 14 | S = "${WORKDIR}/mutter-2.28.1_0.0" |
diff --git a/meta/recipes-graphics/mutter/mutter_git.bb b/meta/recipes-graphics/mutter/mutter_git.bb index 8d308f1688..c3ba32efdc 100644 --- a/meta/recipes-graphics/mutter/mutter_git.bb +++ b/meta/recipes-graphics/mutter/mutter_git.bb | |||
| @@ -18,3 +18,4 @@ SRC_URI = "git://git.moblin.org/mutter.git;protocol=git;branch=master \ | |||
| 18 | " | 18 | " |
| 19 | S = "${WORKDIR}/git" | 19 | S = "${WORKDIR}/git" |
| 20 | 20 | ||
| 21 | DEFAULT_PREFERENCE = "-1" | ||
