From 6357df1a7af34d84588b98d992591746bddeb763 Mon Sep 17 00:00:00 2001
From: Geoffrey McRae <geoff@hostfission.com>
Date: Wed, 15 Nov 2023 17:40:57 +1100
Subject: [PATCH] [client] egl: fix non-dma texture stride issue

---
 client/renderers/EGL/texture_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/client/renderers/EGL/texture_buffer.c b/client/renderers/EGL/texture_buffer.c
index 938554b34..b23106b7b 100644
--- a/client/renderers/EGL/texture_buffer.c
+++ b/client/renderers/EGL/texture_buffer.c
@@ -242,7 +242,7 @@ EGL_TexStatus egl_texBufferStreamProcess(EGL_Texture * texture)
     glBindBuffer(GL_PIXEL_UNPACK_BUFFER, buffer->pbo);
     glBindTexture(GL_TEXTURE_2D, tex);
 
-    glPixelStorei(GL_UNPACK_ROW_LENGTH, texture->format.width);
+    glPixelStorei(GL_UNPACK_ROW_LENGTH, texture->format.stride);
     glTexSubImage2D(GL_TEXTURE_2D,
         0, 0, 0,
         texture->format.width,