REVIEWED: Potential code issues reported by CodeQL #3476

This commit is contained in:
Ray 2023-11-01 15:28:18 +01:00
parent ba21b8d274
commit 64d64cc181
12 changed files with 98 additions and 92 deletions

View file

@ -82,7 +82,8 @@ int main(void)
// Check if screen is resized
if (IsWindowResized())
{
float resolution[2] = { (float)GetScreenWidth(), (float)GetScreenHeight() };
resolution[0] = (float)GetScreenWidth();
resolution[1] = (float)GetScreenHeight();
SetShaderValue(shader, resolutionLoc, resolution, SHADER_UNIFORM_VEC2);
}
//----------------------------------------------------------------------------------