aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2008-07-20 10:49:48 +0200
committerRoland Scheidegger <[email protected]>2008-07-22 16:51:48 +0200
commit7467a943fc7aeca050014424d5bb2e3ca30c1a04 (patch)
tree434a0d3712a033bdd04f4b72dcb9b2fe80d66669 /src/mesa/state_tracker
parent63025ec726eb6d3e9a3140f3928a8fc8840c806f (diff)
add env var to override msaa visual selection
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_framebuffer.c4
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 1994a1c8260..039a9cfe899 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 */