diff options
author | Brian Paul <[email protected]> | 2009-10-10 09:25:34 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-10-10 09:25:34 -0600 |
commit | 57e3eb1b178e861dee7695c9a5e1c71a4333192d (patch) | |
tree | 9e4e6fc113820d1754f0955ce3f768d8d1ca1eec /src/mesa/state_tracker | |
parent | 39daa763b59cc80d862709e99ee3619bd0f7a14d (diff) | |
parent | 768481ed40cb7530fdbadbf4d6dc00b74209adf1 (diff) |
Merge branch 'mesa_7_6_branch'
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_framebuffer.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_framebuffer.c b/src/mesa/state_tracker/st_framebuffer.c index 5c0d335d62d..a5d1ae3b034 100644 --- a/src/mesa/state_tracker/st_framebuffer.c +++ b/src/mesa/state_tracker/st_framebuffer.c @@ -52,6 +52,7 @@ st_create_framebuffer( const __GLcontextModes *visual, struct st_framebuffer *stfb = ST_CALLOC_STRUCT(st_framebuffer); if (stfb) { int samples = st_get_msaa(); + int i; if (visual->sampleBuffers) samples = visual->samples; @@ -119,6 +120,12 @@ st_create_framebuffer( const __GLcontextModes *visual, _mesa_add_renderbuffer(&stfb->Base, BUFFER_ACCUM, accumRb); } + for (i = 0; i < visual->numAuxBuffers; i++) { + struct gl_renderbuffer *aux + = st_new_renderbuffer_fb(colorFormat, 0, FALSE); + _mesa_add_renderbuffer(&stfb->Base, BUFFER_AUX0 + i, aux); + } + stfb->Base.Initialized = GL_TRUE; stfb->InitWidth = width; stfb->InitHeight = height; |