summaryrefslogtreecommitdiffstats
path: root/src/skel/glfw
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-21 10:21:42 +0100
committeraap <aap@papnet.eu>2021-01-21 10:21:47 +0100
commit24de9f92e8513cfe0f6eedc6b69b3ff5bc282ffe (patch)
treed478453f07c2879f614491b2a8a051c2deb8f68e /src/skel/glfw
parentGet rid of bitfields in CPool (diff)
downloadre3-24de9f92e8513cfe0f6eedc6b69b3ff5bc282ffe.tar
re3-24de9f92e8513cfe0f6eedc6b69b3ff5bc282ffe.tar.gz
re3-24de9f92e8513cfe0f6eedc6b69b3ff5bc282ffe.tar.bz2
re3-24de9f92e8513cfe0f6eedc6b69b3ff5bc282ffe.tar.lz
re3-24de9f92e8513cfe0f6eedc6b69b3ff5bc282ffe.tar.xz
re3-24de9f92e8513cfe0f6eedc6b69b3ff5bc282ffe.tar.zst
re3-24de9f92e8513cfe0f6eedc6b69b3ff5bc282ffe.zip
Diffstat (limited to 'src/skel/glfw')
-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 f039819c..9b2a768e 100644
--- a/src/skel/glfw/glfw.cpp
+++ b/src/skel/glfw/glfw.cpp
@@ -216,6 +216,10 @@ psGrabScreen(RwCamera *pCamera)
RwImageSetFromRaster(pImage, pRaster);
return pImage;
}
+#else
+ rw::Image *image = RwCameraGetRaster(pCamera)->toImage();
+ if(image)
+ return image;
#endif
return nil;
}