diff options
author | Eric Anholt <eric@anholt.net> | 2014-03-06 18:50:07 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-03-10 13:57:21 -0700 |
commit | 96a28e9c914d7ae9b269f73a27b99cbd3c465ac8 (patch) | |
tree | 1678a65ba48fdeefc8aeee2b8286f9e755c11d48 | |
parent | 2843a2f9b58a4aae2949111722c5c1bf3878674b (diff) |
glx: Clear new FBConfig attributes to 0 by default.
The visualSelectGroup wasn't getting set (since our DRI drivers don't
use it), and and since it's the top priority in the sort order, you
got random sorting of your visuals unless malloc really returned you
new memory. This manifested as Xephyr -glamor rendering to a
multisampled window on my system, which as you might guess was
slightly lower performance than expected.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
-rw-r--r-- | glx/glxdricommon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glx/glxdricommon.c b/glx/glxdricommon.c index 69d4b297e..62cce131d 100644 --- a/glx/glxdricommon.c +++ b/glx/glxdricommon.c @@ -132,7 +132,7 @@ createModeFromConfig(const __DRIcoreExtension * core, unsigned int attrib, value; int i; - config = malloc(sizeof *config); + config = calloc(1, sizeof *config); config->driConfig = driConfig; |