summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 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 */