Cannot create a valid pBuffer with height and/or width of zero
Submitted by Jonathan Kirkham
Assigned to mes..@..op.org
Description
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).
The MESA implmentation simply returns a surface handle of zero in Fake_glXCreatePbuffer (within fakeglx.c) when these values are used, without throwing an error.
Because an error has not been thrown it appears than the buffer is valid when it is not. Subsequent calls to query or destroy the buffer will cause errors.
Other implementations throw a BAD_VALUE error in this case although this is not part of either specification.
Version: 7.10