[gstreamer-bugs] [Bug 593786] support OpenGL es in autofoo

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sat Sep 12 11:16:29 PDT 2009


https://bugzilla.gnome.org/show_bug.cgi?id=593786
  GStreamer | gst-plugins-gl | git

--- Comment #13 from Julien Isorce <julien.isorce at gmail.com> 2009-09-12 18:16:27 UTC ---
and some more informations that could help:

the error occurs in  the "gst_gl_display_thread_init_upload_fbo".
This function initialize one framebuffer object that will be used for uploading
the raw data buffer. So it attempts to attach a texture to a FBO and then the
rendering is made in this texture. That's why you got a gstglbuffer at the
output of the glupload element.
Well to initialize the framebuffer, we have to attach a fake texture. (fake
means that this texture will be deleted just after the init of the fbo)
It's just to set the correct dimension of the fbo.

Well the error you got means this:

GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS : 
Not all attached images have the same width and height.

according to:
http://www.khronos.org/opengles/sdk/docs/man/glCheckFramebufferStatus.xml

So this is weird because at this point we only attach one texture to the fbo:
the fake texture.
So this is not possible.

What you can do is to print the width and height:

line 2443:
glGenTextures (1, &fake_texture);
glBindTexture (GL_TEXTURE_RECTANGLE_ARB, fake_texture);
glTexImage2D (GL_TEXTURE_RECTANGLE_ARB, 0, GL_RGBA8,
        display->upload_width, display->upload_height, 0, GL_RGBA,
        GL_UNSIGNED_BYTE, NULL);
g_print ("%d x %d\n", display->upload_width, display->upload_height);

(print if you can't use a debugger)

You can also try to put 
glBindTexture (GL_TEXTURE_RECTANGLE_ARB, 0);
just before to call "gst_gl_display_thread_init_upload_fbo"

I have no other ideas at the moment. Maybe the opengl maemo team would help on
it.

Good Luck

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list