mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-16 00:18:20 +02:00
mesa: added GL3 buffer attachment aliases
This commit is contained in:
parent
00225af999
commit
8829e063aa
1 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue