radv: Only save the descriptor set if we have one.
[mesa.git] / src / mesa / drivers / dri / nouveau / nouveau_screen.c
index 65caec27eb3e4a88ae77d387b4cad9f4acc25910..a3be805d048483c122bf426301ab43d6ff780364 100644 (file)
@@ -65,7 +65,7 @@ nouveau_get_configs(uint32_t chipset)
        };
 
        const GLenum back_buffer_modes[] = {
-               GLX_NONE, GLX_SWAP_UNDEFINED_OML
+               __DRI_ATTRIB_SWAP_NONE, __DRI_ATTRIB_SWAP_UNDEFINED
        };
 
        for (i = 0; i < ARRAY_SIZE(formats); i++) {
@@ -78,7 +78,7 @@ nouveau_get_configs(uint32_t chipset)
                                          ARRAY_SIZE(back_buffer_modes),
                                          msaa_samples,
                                          ARRAY_SIZE(msaa_samples),
-                                         GL_TRUE, chipset < 0x10);
+                                         GL_TRUE, chipset < 0x10, GL_FALSE);
                assert(config);
 
                configs = driConcatConfigs(configs, config);