REVIEWED: Potential code issues reported by CodeQL #3476
This commit is contained in:
parent
ba21b8d274
commit
64d64cc181
12 changed files with 98 additions and 92 deletions
|
@ -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);
|
||||
}
|
||||
//----------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue