summaryrefslogtreecommitdiff
path: root/recipes/gstreamer/gst-plugin-gles
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2009-09-30 09:58:04 +0200
committerKoen Kooi <koen@openembedded.org>2009-09-30 09:58:04 +0200
commit87a9e6b4f556808aef42bf8f89d2740379e97727 (patch)
treee221a2a1d52e322bb019ad294d3ecce32d4ca217 /recipes/gstreamer/gst-plugin-gles
parentcfdba342d167414279e5e246dfc32f1dfc5652f2 (diff)
gst-plugin-gles: gles2 fix from Pratheesh
Diffstat (limited to 'recipes/gstreamer/gst-plugin-gles')
-rw-r--r--recipes/gstreamer/gst-plugin-gles/omap3_disable_depth_attachment.patch45
-rw-r--r--recipes/gstreamer/gst-plugin-gles/omap3_fix_renderbuffer_storage.patch29
2 files changed, 29 insertions, 45 deletions
diff --git a/recipes/gstreamer/gst-plugin-gles/omap3_disable_depth_attachment.patch b/recipes/gstreamer/gst-plugin-gles/omap3_disable_depth_attachment.patch
deleted file mode 100644
index 1b4cf15c8f..0000000000
--- a/recipes/gstreamer/gst-plugin-gles/omap3_disable_depth_attachment.patch
+++ /dev/null
@@ -1,45 +0,0 @@
---- /tmp/gstgldisplay.c 2009-09-28 00:49:48.000000000 +0530
-+++ git/gst-libs/gst/gl/gstgldisplay.c 2009-09-28 02:35:00.000000000 +0530
-@@ -1252,12 +1252,12 @@ gst_gl_display_thread_init_download (Gst
- default:
- g_assert_not_reached ();
- }
--
-+#if 0
- //attach the depth render buffer to the FBO
- glFramebufferRenderbufferEXT (GL_FRAMEBUFFER_EXT,
- GL_DEPTH_ATTACHMENT_EXT, GL_RENDERBUFFER_EXT,
- display->download_depth_buffer);
--
-+#endif
- gst_gl_display_check_framebuffer_status ();
-
- g_assert (glCheckFramebufferStatusEXT (GL_FRAMEBUFFER_EXT) ==
-@@ -1555,11 +1555,11 @@ gst_gl_display_thread_gen_fbo (GstGLDisp
- //attach the texture to the FBO to renderer to
- glFramebufferTexture2DEXT (GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT,
- GL_TEXTURE_RECTANGLE_ARB, fake_texture, 0);
--
-+#if 0
- //attach the depth render buffer to the FBO
- glFramebufferRenderbufferEXT (GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT,
- GL_RENDERBUFFER_EXT, display->generated_depth_buffer);
--
-+#endif
- g_assert (glCheckFramebufferStatusEXT (GL_FRAMEBUFFER_EXT) ==
- GL_FRAMEBUFFER_COMPLETE_EXT);
-
-@@ -2443,11 +2443,11 @@ gst_gl_display_thread_init_upload_fbo (G
- //attach the texture to the FBO to renderer to
- glFramebufferTexture2DEXT (GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT,
- GL_TEXTURE_RECTANGLE_ARB, fake_texture, 0);
--
-+#if 0
- //attach the depth render buffer to the FBO
- glFramebufferRenderbufferEXT (GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT,
- GL_RENDERBUFFER_EXT, display->upload_depth_buffer);
--
-+#endif
- gst_gl_display_check_framebuffer_status ();
-
- g_assert (glCheckFramebufferStatusEXT (GL_FRAMEBUFFER_EXT) ==
diff --git a/recipes/gstreamer/gst-plugin-gles/omap3_fix_renderbuffer_storage.patch b/recipes/gstreamer/gst-plugin-gles/omap3_fix_renderbuffer_storage.patch
new file mode 100644
index 0000000000..32911bf499
--- /dev/null
+++ b/recipes/gstreamer/gst-plugin-gles/omap3_fix_renderbuffer_storage.patch
@@ -0,0 +1,29 @@
+--- /tmp/gstgldisplay.c 2009-09-28 00:49:48.000000000 +0530
++++ git/gst-libs/gst/gl/gstgldisplay.c 2009-09-30 02:31:20.000000000 +0530
+@@ -1172,7 +1172,7 @@ gst_gl_display_thread_init_download (Gst
+ glGenRenderbuffersEXT (1, &display->download_depth_buffer);
+ glBindRenderbufferEXT (GL_RENDERBUFFER_EXT,
+ display->download_depth_buffer);
+- glRenderbufferStorageEXT (GL_RENDERBUFFER_EXT, GL_DEPTH_COMPONENT,
++ glRenderbufferStorageEXT (GL_RENDERBUFFER_EXT, GL_DEPTH_COMPONENT16,
+ display->download_width, display->download_height);
+
+ //setup a first texture to render to
+@@ -1536,7 +1536,7 @@ gst_gl_display_thread_gen_fbo (GstGLDisp
+ //setup the render buffer for depth
+ glGenRenderbuffersEXT (1, &display->generated_depth_buffer);
+ glBindRenderbufferEXT (GL_RENDERBUFFER_EXT, display->generated_depth_buffer);
+- glRenderbufferStorageEXT (GL_RENDERBUFFER_EXT, GL_DEPTH_COMPONENT,
++ glRenderbufferStorageEXT (GL_RENDERBUFFER_EXT, GL_DEPTH_COMPONENT16,
+ display->gen_fbo_width, display->gen_fbo_height);
+
+ //setup a texture to render to
+@@ -2422,7 +2422,7 @@ gst_gl_display_thread_init_upload_fbo (G
+ //setup the render buffer for depth
+ glGenRenderbuffersEXT (1, &display->upload_depth_buffer);
+ glBindRenderbufferEXT (GL_RENDERBUFFER_EXT, display->upload_depth_buffer);
+- glRenderbufferStorageEXT (GL_RENDERBUFFER_EXT, GL_DEPTH_COMPONENT,
++ glRenderbufferStorageEXT (GL_RENDERBUFFER_EXT, GL_DEPTH_COMPONENT16,
+ display->upload_width, display->upload_height);
+
+ //a fake texture is attached to the upload FBO (cannot init without it)