diff options
author | Roland Scheidegger <sroland@tungstengraphics.com> | 2008-07-20 10:49:48 +0200 |
---|---|---|
committer | Roland Scheidegger <sroland@tungstengraphics.com> | 2008-07-22 16:51:48 +0200 |
commit | 7467a943fc7aeca050014424d5bb2e3ca30c1a04 (patch) | |
tree | 434a0d3712a033bdd04f4b72dcb9b2fe80d66669 | |
parent | 63025ec726eb6d3e9a3140f3928a8fc8840c806f (diff) |
add env var to override msaa visual selection
-rw-r--r-- | src/mesa/state_tracker/st_framebuffer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_framebuffer.c b/src/mesa/state_tracker/st_framebuffer.c index 1994a1c826..039a9cfe89 100644 --- a/src/mesa/state_tracker/st_framebuffer.c +++ b/src/mesa/state_tracker/st_framebuffer.c @@ -52,8 +52,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"); _mesa_initialize_framebuffer(&stfb->Base, visual); if (visual->sampleBuffers) samples = visual->samples; + if (msaa_override) { + samples = _mesa_atoi(msaa_override); + } { /* fake frontbuffer */ |