[client] opengl: initialize scale to 1.0

Fixes SPICE cursor rendering unconditionally at (0, 0) prior to KVMFR
frame format configuration
This commit is contained in:
Jacob McNamee
2025-04-22 20:24:59 -07:00
committed by Geoffrey McRae
parent 28b653b112
commit b7d044de5d

View File

@@ -205,6 +205,9 @@ bool opengl_create(LG_Renderer ** renderer, const LG_RendererParams params,
this->opt.preventBuffer = option_get_bool("opengl", "preventBuffer"); this->opt.preventBuffer = option_get_bool("opengl", "preventBuffer");
this->opt.amdPinnedMem = option_get_bool("opengl", "amdPinnedMem" ); this->opt.amdPinnedMem = option_get_bool("opengl", "amdPinnedMem" );
this->scaleX = 1.0f;
this->scaleY = 1.0f;
LG_LOCK_INIT(this->formatLock); LG_LOCK_INIT(this->formatLock);
LG_LOCK_INIT(this->frameLock ); LG_LOCK_INIT(this->frameLock );
LG_LOCK_INIT(this->mouseLock ); LG_LOCK_INIT(this->mouseLock );