Browse Source

Fix quads with padded images, tiling will still fail

Bart van Strien 14 years ago
parent
commit
480568e654
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/modules/graphics/opengl/Quad.cpp

+ 2 - 0
src/modules/graphics/opengl/Quad.cpp

@@ -43,6 +43,8 @@ namespace opengl
 
 
 	void Quad::refresh(const Viewport & v, int sw, int sh)
 	void Quad::refresh(const Viewport & v, int sw, int sh)
 	{
 	{
+		sw = next_p2(sw);
+		sh = next_p2(sh);
 		viewport = v;
 		viewport = v;
 
 
 		vertices[0].x = 0; 
 		vertices[0].x = 0;