diff options
author | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-06-29 09:36:35 +0200 |
---|---|---|
committer | Fire-Head <Fire-Head@users.noreply.github.com> | 2020-06-29 09:36:35 +0200 |
commit | fcac1f9a34488a3f3f42dc137b713d723ea9bd80 (patch) | |
tree | 6a3c65a077d60d83b2f92923e35f8420b6a7d22e | |
parent | menu fixes (diff) | |
download | re3-fcac1f9a34488a3f3f42dc137b713d723ea9bd80.tar re3-fcac1f9a34488a3f3f42dc137b713d723ea9bd80.tar.gz re3-fcac1f9a34488a3f3f42dc137b713d723ea9bd80.tar.bz2 re3-fcac1f9a34488a3f3f42dc137b713d723ea9bd80.tar.lz re3-fcac1f9a34488a3f3f42dc137b713d723ea9bd80.tar.xz re3-fcac1f9a34488a3f3f42dc137b713d723ea9bd80.tar.zst re3-fcac1f9a34488a3f3f42dc137b713d723ea9bd80.zip |
-rw-r--r-- | src/render/MBlur.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/render/MBlur.cpp b/src/render/MBlur.cpp index 45224d05..af8fe763 100644 --- a/src/render/MBlur.cpp +++ b/src/render/MBlur.cpp @@ -52,11 +52,13 @@ CMBlur::MotionBlurOpen(RwCamera *cam) if(pFrontBuffer) MotionBlurClose(); - extern void _GetVideoMemInfo(LPDWORD total, LPDWORD avaible); DWORD total, avaible; +#ifdef _WIN32 + extern void _GetVideoMemInfo(LPDWORD total, LPDWORD avaible); _GetVideoMemInfo(&total, &avaible); debug("Available video memory %d\n", avaible); +#endif if(BlurOn) { @@ -102,9 +104,11 @@ CMBlur::MotionBlurOpen(RwCamera *cam) rect.h = RwRasterGetHeight(RwCameraGetRaster(cam)); } +#ifdef _WIN32 _GetVideoMemInfo(&total, &avaible); debug("Available video memory %d\n", avaible); CreateImmediateModeData(cam, &rect); +#endif } else { |