Commit a26e707 1 parent 038955d commit a26e707 Copy full SHA for a26e707
File tree 2 files changed +10
-2
lines changed
src/platform/unix/wayland
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,11 @@ impl Connection {
63
63
/// Returns the OpenGL API flavor that this connection supports (OpenGL or OpenGL ES).
64
64
#[ inline]
65
65
pub fn gl_api ( & self ) -> GLApi {
66
- GLApi :: GL
66
+ if std:: env:: var ( "SURFMAN_FORCE_GLES" ) . is_ok ( ) {
67
+ GLApi :: GLES
68
+ } else {
69
+ GLApi :: GL
70
+ }
67
71
}
68
72
69
73
/// Returns the "best" adapter on this system, preferring high-performance hardware adapters.
Original file line number Diff line number Diff line change @@ -63,6 +63,10 @@ impl Device {
63
63
/// Returns the OpenGL API flavor that this device supports (OpenGL or OpenGL ES).
64
64
#[ inline]
65
65
pub fn gl_api ( & self ) -> GLApi {
66
- GLApi :: GL
66
+ if std:: env:: var ( "SURFMAN_FORCE_GLES" ) . is_ok ( ) {
67
+ GLApi :: GLES
68
+ } else {
69
+ GLApi :: GL
70
+ }
67
71
}
68
72
}
You can’t perform that action at this time.
0 commit comments