mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[client] egl: fix potential integer underflow
This commit is contained in:
parent
ee5c02f72a
commit
43f9a4c0e1
@ -303,7 +303,9 @@ bool egl_shaderCompile(EGL_Shader * this, const char * vertex_code,
|
||||
|
||||
if (!newLine)
|
||||
{
|
||||
insertPos = i - 1;
|
||||
insertPos = i;
|
||||
if (insertPos > 0)
|
||||
--insertPos;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user