Browse Source

Minor tweaks

Ray 4 years ago
parent
commit
899afcbdca
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/core.c

+ 2 - 2
src/core.c

@@ -513,7 +513,7 @@ extern void UnloadFontDefault(void);        // [Module: text] Unloads default fo
 static bool InitGraphicsDevice(int width, int height);  // Initialize graphics device
 static bool InitGraphicsDevice(int width, int height);  // Initialize graphics device
 static void SetupFramebuffer(int width, int height);    // Setup main framebuffer
 static void SetupFramebuffer(int width, int height);    // Setup main framebuffer
 static void SetupViewport(int width, int height);       // Set viewport for a provided width and height
 static void SetupViewport(int width, int height);       // Set viewport for a provided width and height
-static void SwapBuffers(void);                          // Copy back buffer to front buffers
+static void SwapBuffers(void);                          // Copy back buffer to front buffer
 
 
 static void InitTimer(void);                            // Initialize timer
 static void InitTimer(void);                            // Initialize timer
 static void Wait(float ms);                             // Wait for some milliseconds (stop program execution)
 static void Wait(float ms);                             // Wait for some milliseconds (stop program execution)
@@ -4517,7 +4517,7 @@ static void InitTimer(void)
 #endif
 #endif
 
 
 #if defined(PLATFORM_ANDROID) || defined(PLATFORM_RPI) || defined(PLATFORM_DRM)
 #if defined(PLATFORM_ANDROID) || defined(PLATFORM_RPI) || defined(PLATFORM_DRM)
-    struct timespec now;
+    struct timespec now = { 0 };
 
 
     if (clock_gettime(CLOCK_MONOTONIC, &now) == 0)  // Success
     if (clock_gettime(CLOCK_MONOTONIC, &now) == 0)  // Success
     {
     {