mesa: convert some #defines to enums
authorBrian Paul <brianp@vmware.com>
Sat, 28 Feb 2009 17:58:57 +0000 (10:58 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 28 Feb 2009 18:17:26 +0000 (11:17 -0700)
commit4c4268dd31ce119d5d3db090adf0935bf3c27831
tree987961a45ecf031d9affe28421de92c95f832800
parentfe353787698153216e5fc68c63ad0a48e71d49bf
mesa: convert some #defines to enums

This makes debugging with gdb a bit easier.
Ex:
(gdb) p ctx->DrawBuffer.Attachment[BUFFER_STENCIL]

Note however that gdb only seems to recognize enum types that are actually
used to declare a variable somewhere.  For example, gl_buffer_index isn't
used to declare any vars so it's invisible to gdb.  Work around this by
adding a dummy function in context.c that declares some vars with these
new types.
src/mesa/main/context.c
src/mesa/main/mtypes.h