[Mesa-dev] [Bug 36959] New: glxinfo -v doesn't show proper drawable type information.
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun May 8 03:00:32 PDT 2011
https://bugs.freedesktop.org/show_bug.cgi?id=36959
Summary: glxinfo -v doesn't show proper drawable type
information.
Product: Mesa
Version: git
Platform: x86 (IA32)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Demos
AssignedTo: mesa-dev at lists.freedesktop.org
ReportedBy: sagawa.aki+fdtbugs at gmail.com
Created an attachment (id=46446)
--> (https://bugs.freedesktop.org/attachment.cgi?id=46446)
proposed patch
Under the following situation, visual_drawable_type function (defined in
src/xdemos/glxinfo.c and called from glxinfo -v) returns wrong type text.
1. a visual calls visual_drawable_type(GLX_WINDOW_BIT);
2. then, another visual calls visual_drawable_type(GLX_PIXMAP_BIT);
In the later case, it expects to return "pixmap". But actually it returns
"window,pixmap,". The reason of this behavior is that the function advances a
pointer without testing a flag, and it doesn't clear previous texts.
I found this bug when I was testing Oracle VirtualBox's feature on Ubuntu
10.10.
I made a patch, so attach it.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the mesa-dev
mailing list