REVIEWED: Potential code issues reported by CodeQL #3476

This commit is contained in:
Ray 2023-11-01 15:28:18 +01:00
commit 64d64cc181

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);
}
//----------------------------------------------------------------------------------