mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 11:29:02 +00:00
fix linux build?
This commit is contained in:
parent
63fdcf7e64
commit
fcac1f9a34
1 changed files with 5 additions and 1 deletions
|
@ -52,11 +52,13 @@ CMBlur::MotionBlurOpen(RwCamera *cam)
|
||||||
if(pFrontBuffer)
|
if(pFrontBuffer)
|
||||||
MotionBlurClose();
|
MotionBlurClose();
|
||||||
|
|
||||||
extern void _GetVideoMemInfo(LPDWORD total, LPDWORD avaible);
|
|
||||||
DWORD total, avaible;
|
DWORD total, avaible;
|
||||||
|
#ifdef _WIN32
|
||||||
|
extern void _GetVideoMemInfo(LPDWORD total, LPDWORD avaible);
|
||||||
|
|
||||||
_GetVideoMemInfo(&total, &avaible);
|
_GetVideoMemInfo(&total, &avaible);
|
||||||
debug("Available video memory %d\n", avaible);
|
debug("Available video memory %d\n", avaible);
|
||||||
|
#endif
|
||||||
|
|
||||||
if(BlurOn)
|
if(BlurOn)
|
||||||
{
|
{
|
||||||
|
@ -102,9 +104,11 @@ CMBlur::MotionBlurOpen(RwCamera *cam)
|
||||||
rect.h = RwRasterGetHeight(RwCameraGetRaster(cam));
|
rect.h = RwRasterGetHeight(RwCameraGetRaster(cam));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
_GetVideoMemInfo(&total, &avaible);
|
_GetVideoMemInfo(&total, &avaible);
|
||||||
debug("Available video memory %d\n", avaible);
|
debug("Available video memory %d\n", avaible);
|
||||||
CreateImmediateModeData(cam, &rect);
|
CreateImmediateModeData(cam, &rect);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue