diff options
author | Brian Paul <[email protected]> | 2010-03-20 11:50:55 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-03-20 12:06:35 -0600 |
commit | 8829e063aa87ade63c49d3df27a7edd0c63cf160 (patch) | |
tree | afe0f2bc4ee88cb4b20246ce1ab6946899eda9a2 /src/mesa/main/fbobject.c | |
parent | 00225af999acabcd5eced0b075b0a56018fd5eb8 (diff) |
mesa: added GL3 buffer attachment aliases
Diffstat (limited to 'src/mesa/main/fbobject.c')
-rw-r--r-- | src/mesa/main/fbobject.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 7c442e390c2..07827348694 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -180,8 +180,12 @@ _mesa_get_attachment(GLcontext *ctx, struct gl_framebuffer *fb, return &fb->Attachment[BUFFER_COLOR0 + i]; case GL_DEPTH_STENCIL_ATTACHMENT: /* fall-through */ + case GL_DEPTH_BUFFER: + /* fall-through / new in GL 3.0 */ case GL_DEPTH_ATTACHMENT_EXT: return &fb->Attachment[BUFFER_DEPTH]; + case GL_STENCIL_BUFFER: + /* fall-through / new in GL 3.0 */ case GL_STENCIL_ATTACHMENT_EXT: return &fb->Attachment[BUFFER_STENCIL]; default: |