eglglessink: Fix allocation of RGBA textures
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 6 Mar 2013 16:53:18 +0000 (17:53 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 6 Mar 2013 16:53:18 +0000 (17:53 +0100)
ext/eglgles/gsteglglessink.c

index f956ae6e2c28063c0b173647daf76afdb8c1d0c2..70643a119c1b1afdfcfa8cb1a0872e1cd2fa7f7b 100644 (file)
@@ -3279,7 +3279,7 @@ gst_eglglessink_allocate_eglimage (GstEglGlesSink * eglglessink,
         if (got_gl_error ("glTexParameteri"))
           goto mem_error;
 
-        glTexImage2D (GL_TEXTURE_2D, 0, GL_RGB,
+        glTexImage2D (GL_TEXTURE_2D, 0, GL_RGBA,
             GST_VIDEO_INFO_WIDTH (&info),
             GST_VIDEO_INFO_HEIGHT (&info), 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL);
         if (got_gl_error ("glTexImage2D"))