mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-26 12:27:01 +00:00
REVIEWED: Potential code issues reported by CodeQL #3476
This commit is contained in:
@@ -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);
|
||||
}
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user