src/GLRenderer.h

changeset 699
aca63a3cce36
parent 694
3868f52da6b9
child 704
d19213bec2f9
--- a/src/GLRenderer.h	Mon Mar 10 14:12:28 2014 +0200
+++ b/src/GLRenderer.h	Mon Mar 10 14:29:12 2014 +0200
@@ -79,12 +79,22 @@
 
 	LDGLData()
 	{
-		for (int i = 0; i < 6; ++i)
+		for (int i = 0; i < 7; ++i)
 		{
-			overlays[i].img = null;
-			depthValues[i] = 0.0f;
+			if (i < 6)
+			{
+				overlays[i].img = null;
+				depthValues[i] = 0.0f;
+			}
+
+			zoom[i] = 30.0;
+			panX[i] = 0.0;
+			panY[i] = 0.0;
 		}
 
+		rotX = 0;
+		rotY = 0;
+		rotZ = 0;
 		init = false;
 	}
 };

mercurial