summaryrefslogtreecommitdiffstats
path: root/src/skel/glfw/glfw.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-21 10:19:01 +0100
committeraap <aap@papnet.eu>2021-01-21 10:19:01 +0100
commit6df52f06b658ebe0267fe5de9cd414d9e46aefb4 (patch)
tree79b3d6057a41b383b54b523190402b2301304316 /src/skel/glfw/glfw.cpp
parentfixed saving (diff)
downloadre3-6df52f06b658ebe0267fe5de9cd414d9e46aefb4.tar
re3-6df52f06b658ebe0267fe5de9cd414d9e46aefb4.tar.gz
re3-6df52f06b658ebe0267fe5de9cd414d9e46aefb4.tar.bz2
re3-6df52f06b658ebe0267fe5de9cd414d9e46aefb4.tar.lz
re3-6df52f06b658ebe0267fe5de9cd414d9e46aefb4.tar.xz
re3-6df52f06b658ebe0267fe5de9cd414d9e46aefb4.tar.zst
re3-6df52f06b658ebe0267fe5de9cd414d9e46aefb4.zip
Diffstat (limited to 'src/skel/glfw/glfw.cpp')
-rw-r--r--src/skel/glfw/glfw.cpp4
1 files changed, 4 insertions, 0 deletions
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;
}