[Webkit-unassigned] [Bug 155536] Wrong use of EGL_DEPTH_SIZE
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 16 15:50:52 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=155536
--- Comment #2 from Erwin Rol <erwin at erwinrol.com> ---
The intention of the code seems to be to get the number of bits per pixel (used by the screen for color) and to create a pixmap with that same number of bits per pixel.
The EGL_DEPTH_SIZE has nothing to do with color, it is the depth buffer size (the number of bits for the Z axis).
https://www.khronos.org/registry/egl/sdk/docs/man/html/eglGetConfigAttrib.xhtml
A better way to get the color depth of the DefaultRootWindow is maybe to use the XGetWindowAttributes() call and use the XWindowAttributes.depth member.
https://tronche.com/gui/x/xlib/window-information/XGetWindowAttributes.html
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160316/f63eca50/attachment.html>
More information about the webkit-unassigned
mailing list