Flip GDI bitmap in model loading before feeding it to OpenGL

This commit is contained in:
ZZYZX 2019-12-18 21:27:09 +02:00
parent 4de0d96d13
commit 2bce3f06a4

View file

@ -1655,6 +1655,7 @@ namespace CodeImp.DoomBuilder.GZBuilder.MD3
//create texture //create texture
FileImageReader fir = new FileImageReader(); FileImageReader fir = new FileImageReader();
Bitmap bitmap = fir.ReadAsBitmap(ms); Bitmap bitmap = fir.ReadAsBitmap(ms);
bitmap.RotateFlip(RotateFlipType.RotateNoneFlipY);
ms.Close(); ms.Close();
if(bitmap != null) if(bitmap != null)