Explorar o código

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

vrld %!s(int64=14) %!d(string=hai) anos
pai
achega
c5eb50d0d5
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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()