summaryrefslogtreecommitdiffhomepage
path: root/examples/others
diff options
context:
space:
mode:
authorRay <[email protected]>2019-05-27 00:18:15 +0200
committerRay <[email protected]>2019-05-27 00:18:15 +0200
commit87774a0a21f8d2998b4dc13e989005270476ae92 (patch)
tree4228376c752b1760be44cc8582725ecac522939b /examples/others
parent241c4c8d14225bdf30c168802d4b16b59d5043e0 (diff)
downloadraylib-87774a0a21f8d2998b4dc13e989005270476ae92.tar.gz
raylib-87774a0a21f8d2998b4dc13e989005270476ae92.zip
Review variables initialization
Diffstat (limited to 'examples/others')
-rw-r--r--examples/others/raudio_standalone.c2
-rw-r--r--examples/others/rlgl_standalone.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/others/raudio_standalone.c b/examples/others/raudio_standalone.c
index 02720837..63d5b8d2 100644
--- a/examples/others/raudio_standalone.c
+++ b/examples/others/raudio_standalone.c
@@ -94,7 +94,7 @@ int main()
{
// Initialization
//--------------------------------------------------------------------------------------
- static unsigned char key;
+ static unsigned char key = 0;
InitAudioDevice();
diff --git a/examples/others/rlgl_standalone.c b/examples/others/rlgl_standalone.c
index 42aec2e2..d8100ce5 100644
--- a/examples/others/rlgl_standalone.c
+++ b/examples/others/rlgl_standalone.c
@@ -131,7 +131,7 @@ int main(void)
rlClearColor(245, 245, 245, 255); // Define clear color
rlEnableDepthTest(); // Enable DEPTH_TEST for 3D
- Camera camera;
+ Camera camera = { 0 };
camera.position = (Vector3){ 5.0f, 5.0f, 5.0f }; // Camera position
camera.target = (Vector3){ 0.0f, 0.0f, 0.0f }; // Camera looking at point
camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Camera up vector (rotation towards target)