mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[client] fixed incorrect texSize calculation
This commit is contained in:
parent
ec13fc161d
commit
310dba3620
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user