summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2014-03-06 18:50:07 -0800
committerMatt Dew <marcoz@osource.org>2014-04-12 09:29:50 -0600
commiteec04d76a39a7334de4e00ef9f0f6e44c92b3d91 (patch)
tree6e8aab623f908833a23ee5e87d141b694eb0f6d6
parentd6268c25a8d33241d817977a84f127f8ef0cb9ee (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glx/glxdricommon.c b/glx/glxdricommon.c
index fc902729d..a97d027a8 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;