Browse Source

Fix issue #158 by forcing the image origin to be upper left.

vrld 14 years ago
parent
commit
c5eb50d0d5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/modules/image/devil/Image.cpp

+ 2 - 0
src/modules/image/devil/Image.cpp

@@ -34,6 +34,8 @@ namespace devil
 	Image::Image()
 	{
 		ilInit();
+		ilOriginFunc(IL_ORIGIN_UPPER_LEFT);
+		ilEnable(IL_ORIGIN_SET);
 	}
 
 	Image::~Image()