aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2023-08-10 10:26:11 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2023-08-10 14:50:51 +0400
commit21c3c5cad07c565df299a8b6d9760d297082737c (patch)
treea5d32c359e1efb679a0b249f71ec81ade9835830 /src
parent24d954f9fee9322fd138ee125c277c1cdcad592d (diff)
downloadniri-21c3c5cad07c565df299a8b6d9760d297082737c.tar.gz
niri-21c3c5cad07c565df299a8b6d9760d297082737c.tar.bz2
niri-21c3c5cad07c565df299a8b6d9760d297082737c.zip
tty: Use GlesTexture instead of GlesRenderbuffer
According to cmeissi from Smithay, GlesRenderbuffer has issues, so GlesTexture should be used instead. This fixes GL errors.
Diffstat (limited to 'src')
-rw-r--r--src/tty.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tty.rs b/src/tty.rs
index 5a81205c..142adfa6 100644
--- a/src/tty.rs
+++ b/src/tty.rs
@@ -10,7 +10,7 @@ use smithay::backend::drm::{DrmDevice, DrmDeviceFd, DrmEvent};
use smithay::backend::egl::{EGLContext, EGLDisplay};
use smithay::backend::libinput::{LibinputInputBackend, LibinputSessionInterface};
use smithay::backend::renderer::element::surface::WaylandSurfaceRenderElement;
-use smithay::backend::renderer::gles::{GlesRenderbuffer, GlesRenderer};
+use smithay::backend::renderer::gles::{GlesRenderer, GlesTexture};
use smithay::backend::renderer::{Bind, ImportEgl};
use smithay::backend::session::libseat::LibSeatSession;
use smithay::backend::session::{Event as SessionEvent, Session};
@@ -72,7 +72,7 @@ impl Backend for Tty {
let output_device = self.output_device.as_mut().unwrap();
let drm_compositor = &mut output_device.drm_compositor;
- match drm_compositor.render_frame::<_, _, GlesRenderbuffer>(
+ match drm_compositor.render_frame::<_, _, GlesTexture>(
&mut output_device.gles,
elements,
BACKGROUND_COLOR,