Commit 4108db0 1 parent 83c1d08 commit 4108db0 Copy full SHA for 4108db0
File tree 2 files changed +7
-10
lines changed
2 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -355,14 +355,11 @@ impl ContextDescriptor {
355
355
}
356
356
357
357
// Sanitize configs.
358
- let egl_config = configs
359
- . into_iter ( )
360
- . filter ( |& egl_config| {
361
- required_config_attributes
362
- . chunks ( 2 )
363
- . all ( |pair| get_config_attr ( egl_display, egl_config, pair[ 0 ] ) == pair[ 1 ] )
364
- } )
365
- . next ( ) ;
358
+ let egl_config = configs. into_iter ( ) . find ( |& egl_config| {
359
+ required_config_attributes
360
+ . chunks ( 2 )
361
+ . all ( |pair| get_config_attr ( egl_display, egl_config, pair[ 0 ] ) == pair[ 1 ] )
362
+ } ) ;
366
363
let egl_config = match egl_config {
367
364
None => return Err ( Error :: NoPixelFormatFound ) ,
368
365
Some ( egl_config) => egl_config,
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ use crate::{Error, GLApi};
8
8
use std:: env;
9
9
use std:: sync:: Arc ;
10
10
11
- static MESA_SOFTWARE_RENDERING_ENV_VAR : & ' static str = "LIBGL_ALWAYS_SOFTWARE" ;
12
- static MESA_DRI_PRIME_ENV_VAR : & ' static str = "DRI_PRIME" ;
11
+ static MESA_SOFTWARE_RENDERING_ENV_VAR : & str = "LIBGL_ALWAYS_SOFTWARE" ;
12
+ static MESA_DRI_PRIME_ENV_VAR : & str = "DRI_PRIME" ;
13
13
14
14
/// Represents a hardware display adapter that can be used for rendering (including the CPU).
15
15
///
You can’t perform that action at this time.
0 commit comments