From 6df52f06b658ebe0267fe5de9cd414d9e46aefb4 Mon Sep 17 00:00:00 2001 From: aap Date: Thu, 21 Jan 2021 10:19:01 +0100 Subject: enable screenshots for librw --- src/skel/glfw/glfw.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/skel/glfw') diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp index 5f87d600..786ada5e 100644 --- a/src/skel/glfw/glfw.cpp +++ b/src/skel/glfw/glfw.cpp @@ -202,6 +202,10 @@ psGrabScreen(RwCamera *pCamera) RwImageSetFromRaster(pImage, pRaster); return pImage; } +#else + rw::Image *image = RwCameraGetRaster(pCamera)->toImage(); + if(image) + return image; #endif return nil; } -- cgit v1.2.3