mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 23:00:05 +01:00
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>
This commit is contained in:
parent
d6268c25a8
commit
eec04d76a3
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue