From 310dba36205d71353bd6b858daf219c9d240a16f Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 4 Dec 2017 10:11:40 +1100 Subject: [PATCH] [client] fixed incorrect texSize calculation --- client/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/main.c b/client/main.c index 8eb765b6..4e101261 100644 --- a/client/main.c +++ b/client/main.c @@ -288,7 +288,7 @@ int renderThread(void * unused) if (state.hasBufferStorage) { // calculate the texture size in bytes - texSize = newHeader.width * newHeader.stride * bpp; + texSize = newHeader.height * newHeader.stride * bpp; // ensure the size makes sense if (newHeader.dataPos + texSize > state.shmSize)