From: Roland Scheidegger Date: Sun, 20 Jul 2008 08:49:48 +0000 (+0200) Subject: add env var to override msaa visual selection X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7467a943fc7aeca050014424d5bb2e3ca30c1a04;p=mesa.git add env var to override msaa visual selection --- 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 */