diff --git a/gnome/src/cursormanager.js b/gnome/src/cursormanager.js index 024f84f..fa65a4a 100644 --- a/gnome/src/cursormanager.js +++ b/gnome/src/cursormanager.js @@ -212,7 +212,7 @@ var CursorManager = class CursorManager { _queueVisibilityUpdate() { this._queued_visibility_update = true; - this._cursorTrackerSetPointerVisibleBound(false); + if (this._cursorTrackerSetPointerVisibleBound) this._cursorTrackerSetPointerVisibleBound(false); this._queueSpriteUpdate(); } diff --git a/gnome/src/xrEffect.js b/gnome/src/xrEffect.js index e88b347..bfb036f 100644 --- a/gnome/src/xrEffect.js +++ b/gnome/src/xrEffect.js @@ -362,8 +362,13 @@ var XREffect = GObject.registerClass({ if (!this._initialized) { this.set_uniform_float(this.get_uniform_location('uDesktopTexture'), 1, [0]); - this.get_pipeline().set_layer_texture(1, calibratingImage.get_texture()); - this.get_pipeline().set_layer_texture(2, customBannerImage.get_texture()); + try { + // this can break in GNOME 42 + this.get_pipeline().set_layer_texture(1, calibratingImage.get_texture()); + this.get_pipeline().set_layer_texture(2, customBannerImage.get_texture()); + } catch (e) { + Globals.logger.log(`ERROR: xrEffect.js vfunc_paint_target ${e.message}\n${e.stack}`); + } this.get_pipeline().set_uniform_1i(this.get_uniform_location('uCalibratingTexture'), 1); this.get_pipeline().set_uniform_1i(this.get_uniform_location('uCustomBannerTexture'), 2);