diff options
author | Brian Paul <[email protected]> | 2008-09-17 14:32:33 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-09-17 14:32:33 -0600 |
commit | 1a820f52f6fa125786538c1adf2aa350e66b8c1e (patch) | |
tree | 229a922b489441efe0390b5002fa5979842fb345 /src/mesa/state_tracker/st_framebuffer.c | |
parent | e6a120fefea44078b3a8d4292d83671e6c41357f (diff) |
gallium: clean-up/fix msaa override in state tracker
Diffstat (limited to 'src/mesa/state_tracker/st_framebuffer.c')
-rw-r--r-- | src/mesa/state_tracker/st_framebuffer.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mesa/state_tracker/st_framebuffer.c b/src/mesa/state_tracker/st_framebuffer.c index 0f4a03fa484..ec8928f200d 100644 --- a/src/mesa/state_tracker/st_framebuffer.c +++ b/src/mesa/state_tracker/st_framebuffer.c @@ -51,13 +51,12 @@ st_create_framebuffer( const __GLcontextModes *visual, { struct st_framebuffer *stfb = CALLOC_STRUCT(st_framebuffer); if (stfb) { - int samples = 0; - const char *msaa_override = _mesa_getenv("__GL_FSAA_MODE"); + int samples = st_get_msaa(); + + if (visual->sampleBuffers) + samples = visual->samples; + _mesa_initialize_framebuffer(&stfb->Base, visual); - if (visual->sampleBuffers) samples = visual->samples; - if (msaa_override) { - samples = _mesa_atoi(msaa_override); - } { /* fake frontbuffer */ |