[waffle] [PATCH] waffle: use enum waffle_error instead of int

Brian Paul brianp at vmware.com
Fri Nov 22 17:02:03 PST 2013


On 11/22/2013 05:33 PM, Chad Versace wrote:
> On 11/15/2013 11:30 AM, Brian Paul wrote:
>> Using the enum type instead of int makes debugging a little easier.
>> It just seems like the right thing to do anyway.
>
> Thanks for the improvement, Brian. This is one of my perennical
> annoyances with OpenGL --- that
> GLenum is really an int --- so I'm surprised that I repeated the annoyance
> in waffle.

IIRC, in the early days of Mesa, I did define GLenum as a C enum type in 
gl.h.  That was way back before glext.h even existed.


> I also committed a follow-on patch that did the same to
> waffle_error_to_string()

Great, thanks.

-Brian



More information about the waffle mailing list