[client] fixed incorrect texSize calculation

This commit is contained in:
Geoffrey McRae committed 2017-12-12 03:59:57 +11:00
1 parent ec13fc161d
commit 310dba3620
1 file changed
+1 -1
+1 -1
View File
@@ -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)