[Mesa-dev] [Bug 38869] Cannot create a valid pBuffer with height and/or width of zero
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Jul 20 07:25:36 PDT 2011
https://bugs.freedesktop.org/show_bug.cgi?id=38869
--- Comment #1 from Brian Paul <brian.e.paul at gmail.com> 2011-07-20 07:25:36 PDT ---
"Both the EGL and GLX specifications allow pbuffers to be created with a height
and/or width of zero (and these are the default values)."
[...]
"Other implementations throw a BAD_VALUE error in this case although this is
not
part of either specification."
I'm not clear on what you're saying. According to the GLX spec, it looks like
a size 0 x 0 pbuffer is legal. But are you saying other implementations throw
BadValue if you try that?
In Mesa, have you tried removing the width==0 || height==0 check? If so, what
happens when you create a 0x0 pbuffer?
Also, off-hand, I don't know of a way to directly generate an X error with Xlib
calls. Remember, the fake GLX layer we're talking about here has no internal
hooks into X so we can't do everything that the real GLX library does. I
suppose we could set up an unrelated protocol request that purposely has bad
arguments to generate the error. If you need this, could you try to implement
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