mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 13:52:57 +00:00
[client] egl: fix potential integer underflow
This commit is contained in:
parent
ee5c02f72a
commit
43f9a4c0e1
1 changed files with 3 additions and 1 deletions
|
@ -303,7 +303,9 @@ bool egl_shaderCompile(EGL_Shader * this, const char * vertex_code,
|
||||||
|
|
||||||
if (!newLine)
|
if (!newLine)
|
||||||
{
|
{
|
||||||
insertPos = i - 1;
|
insertPos = i;
|
||||||
|
if (insertPos > 0)
|
||||||
|
--insertPos;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue