enable screenshots for librw; update librw

This commit is contained in:
aap 2021-01-21 10:21:42 +01:00
parent c7c7eff918
commit 24de9f92e8
3 changed files with 9 additions and 1 deletions

View File

@ -216,6 +216,10 @@ psGrabScreen(RwCamera *pCamera)
RwImageSetFromRaster(pImage, pRaster); RwImageSetFromRaster(pImage, pRaster);
return pImage; return pImage;
} }
#else
rw::Image *image = RwCameraGetRaster(pCamera)->toImage();
if(image)
return image;
#endif #endif
return nil; return nil;
} }

View File

@ -257,6 +257,10 @@ psGrabScreen(RwCamera *pCamera)
RwImageSetFromRaster(pImage, pRaster); RwImageSetFromRaster(pImage, pRaster);
return pImage; return pImage;
} }
#else
rw::Image *image = RwCameraGetRaster(pCamera)->toImage();
if(image)
return image;
#endif #endif
return nil; return nil;
} }

2
vendor/librw vendored

@ -1 +1 @@
Subproject commit 61b288a9fe72ae4073c0ac5fd2a5815ed510c8c8 Subproject commit 9260bddc66f70eb51adf0749fa835fed1562c178