commit | 4c4268dd31ce119d5d3db090adf0935bf3c27831 | [log] [tgz] |
---|---|---|
author | Brian Paul <brianp@vmware.com> | Sat Feb 28 10:58:57 2009 -0700 |
committer | Brian Paul <brianp@vmware.com> | Sat Feb 28 11:17:26 2009 -0700 |
tree | 987961a45ecf031d9affe28421de92c95f832800 | |
parent | fe353787698153216e5fc68c63ad0a48e71d49bf [diff] |
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.