Browse Source

Mixed up s and t, po2ify should work correctly now, quads still broken

Bart van Strien 14 years ago
parent
commit
87fd3362e2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/modules/graphics/opengl/Image.cpp

+ 2 - 2
src/modules/graphics/opengl/Image.cpp

@@ -287,8 +287,8 @@ namespace opengl
 		
 		
 		float p2width = next_p2(width);
 		float p2width = next_p2(width);
 		float p2height = next_p2(height);
 		float p2height = next_p2(height);
-		float t = width/p2width;
-		float s = height/p2height;
+		float s = width/p2width;
+		float t = height/p2height;
 		
 		
 		vertices[1].t = t;
 		vertices[1].t = t;
 		vertices[2].t = t;
 		vertices[2].t = t;