[client] egl: fix potential integer underflow

This commit is contained in:
Geoffrey McRae committed 2023-11-11 13:48:41 +11:00
1 parent ee5c02f72a
commit 43f9a4c0e1
1 file changed
+3 -1
+3 -1
View File
@@ -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;
}
}