mojoshader_opengl.c
changeset 1133 eb1eb43987b3
parent 1125 3de60f597ebd
child 1149 265ab4117525
--- a/mojoshader_opengl.c	Fri May 17 15:01:09 2013 -0400
+++ b/mojoshader_opengl.c	Fri Feb 07 15:57:54 2014 -0500
@@ -285,13 +285,21 @@
 
     if (!checked)
     {
-        SInt32 ver, major, minor, patch;
+        SInt32 ver = 0;
+        SInt32 major = 0;
+        SInt32 minor = 0;
+        SInt32 patch = 0;
         int convert = 0;
 
         if (Gestalt(gestaltSystemVersion, &ver) != noErr)
+        {
             ver = 0x1000;  // oh well.
+            convert = 1;  // split (ver) into (major),(minor),(patch).
+        }
         else if (ver < 0x1030)
+        {
             convert = 1;  // split (ver) into (major),(minor),(patch).
+        }
         else
         {
             // presumably this won't fail. But if it does, we'll just use the