[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 authored and Geoffrey McRae committed 2025-08-29 18:15:28 +10:00
1 parent 28b653b112
commit b7d044de5d
1 file changed
+3
+3
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.amdPinnedMem = option_get_bool("opengl", "amdPinnedMem" );
this->scaleX = 1.0f;
this->scaleY = 1.0f;
LG_LOCK_INIT(this->formatLock);
LG_LOCK_INIT(this->frameLock );
LG_LOCK_INIT(this->mouseLock );