[Wayland-bugs] [Bug 67541] [bug] Black screen running Weston master with mesa master

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 7 11:51:49 PDT 2013


https://bugs.freedesktop.org/show_bug.cgi?id=67541

--- Comment #4 from Pekka Paalanen <ppaalanen at gmail.com> ---
I see what happened.

Weston's GL renderer used to have an #ifdef GL_UNPACK_ROW_LENGTH check to check
the availability of the GL_EXT_unpack_subimage extension in the GLES2 headers. 

The said Mesa commit renamed GL_UNPACK_ROW_LENGTH to GL_UNPACK_ROW_LENGTH_EXT.

That caused the Weston build to think that GL_EXT_unpack_subimage is not
available at build time, so it never compiled that code at all. However, the
runtime check for GL_EXT_unpack_subimage in the GL extension string was not
protected with an #ifdef, and when Weston ran, it found the extension.

The end result is, that gl_renderer_flush_damage() did not do a plain
glTexImage2D because GL_EXT_unpack_subimage was available, and it did not try
glTexSubImage2D either because the code was not compiled. So it never uploaded
the texture.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20130807/9d49da03/attachment-0001.html>


More information about the Wayland-bugs mailing list