mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-09 13:53:58 +00:00
[client] fixed incorrect texSize calculation
This commit is contained in:
parent
ec13fc161d
commit
310dba3620
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue