summaryrefslogtreecommitdiffhomepage
path: root/examples/shaders
diff options
context:
space:
mode:
authorRay <[email protected]>2023-11-01 15:28:18 +0100
committerRay <[email protected]>2023-11-01 15:28:18 +0100
commit64d64cc18114c02ecb068b20b6c4820df6182415 (patch)
treee95a1f4d95d5b3a09492ec54c2566047a588c275 /examples/shaders
parentba21b8d2744b39dadc6b17b9091a30cc5e00f0b8 (diff)
downloadraylib-64d64cc18114c02ecb068b20b6c4820df6182415.tar.gz
raylib-64d64cc18114c02ecb068b20b6c4820df6182415.zip
REVIEWED: Potential code issues reported by CodeQL #3476
Diffstat (limited to 'examples/shaders')
-rw-r--r--examples/shaders/shaders_raymarching.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/shaders/shaders_raymarching.c b/examples/shaders/shaders_raymarching.c
index e9b7755a..ff403e61 100644
--- a/examples/shaders/shaders_raymarching.c
+++ b/examples/shaders/shaders_raymarching.c
@@ -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);
}
//----------------------------------------------------------------------------------