Don't hardcode egl sizes

This commit is contained in:
Timmy Xiao authored and Wez Furlong committed 2024-02-03 14:56:12 -07:00
1 parent 6b73db40e9
commit f8b86cce22
1 file changed
+3 -2
+3 -2
View File
@@ -562,8 +562,9 @@ impl WaylandWindowInner {
let object_id = window.wl_surface().id();
wegl_surface = Some(WlEglSurface::new(
object_id, // TODO: remove the hardcoded stuff
100, 100,
object_id,
self.dimensions.pixel_width as i32,
self.dimensions.pixel_height as i32,
)?);
log::trace!("WEGL Surface here {:?}", wegl_surface);