forge
Explore
Log in

Don't you dare go Hollow

tty: Try to create context with high priority

Browse files at this commit

94da8b1e3ecfc0e76e0de0990d3a14899c8984dfIvan MolodetskikhParent: 2854874
src/backend/tty.rsmodified+2 -1
@@ -12,6 +12,7 @@ use smithay::backend::allocator::gbm::{GbmAllocator, GbmBufferFlags, GbmDevice};
1212 use smithay::backend::allocator::{Format as DrmFormat, Fourcc};
1313 use smithay::backend::drm::compositor::{DrmCompositor, PrimaryPlaneElement};
1414 use smithay::backend::drm::{DrmDevice, DrmDeviceFd, DrmEvent, DrmEventTime};
15+use smithay::backend::egl::context::ContextPriority;
1516 use smithay::backend::egl::{EGLContext, EGLDisplay};
1617 use smithay::backend::libinput::{LibinputInputBackend, LibinputSessionInterface};
1718 use smithay::backend::renderer::gles::{GlesRenderer, GlesTexture, Capability};
@@ -279,7 +280,7 @@ impl Tty {
279280 let gbm = GbmDevice::new(device_fd)?;
280281
281282 let display = EGLDisplay::new(gbm.clone())?;
282- let egl_context = EGLContext::new(&display)?;
283+ let egl_context = EGLContext::new_with_priority(&display, ContextPriority::High)?;
283284
284285 // ColorTransformations is disabled by default as it makes rendering slightly slower.
285286 let mut gles = if self