[client] fixed incorrect texSize calculation

This commit is contained in:
Geoffrey McRae 2017-12-04 10:11:40 +11:00
parent ec13fc161d
commit 310dba3620

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)