Procházet zdrojové kódy

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

vrld před 14 roky
rodič
revize
c5eb50d0d5
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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()