mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57: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)
|
if (state.hasBufferStorage)
|
||||||
{
|
{
|
||||||
// calculate the texture size in bytes
|
// calculate the texture size in bytes
|
||||||
texSize = newHeader.width * newHeader.stride * bpp;
|
texSize = newHeader.height * newHeader.stride * bpp;
|
||||||
|
|
||||||
// ensure the size makes sense
|
// ensure the size makes sense
|
||||||
if (newHeader.dataPos + texSize > state.shmSize)
|
if (newHeader.dataPos + texSize > state.shmSize)
|
||||||
|
Loading…
Reference in New Issue
Block a user