Attempt to fix a couple things that were breaking in GNOME 42

This commit is contained in:
wheaney 2024-07-11 22:33:56 -07:00
parent 6ced16ffc6
commit c5db96ec41
2 changed files with 8 additions and 3 deletions

View File

@ -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();
}

View File

@ -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);