mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-13 21:24:08 +00:00
make screen droplets not crash without neo.txd
This commit is contained in:
parent
40b90618ef
commit
70a279febc
1 changed files with 11 additions and 2 deletions
|
@ -79,7 +79,9 @@ ScreenDroplets::Initialise(void)
|
|||
void
|
||||
ScreenDroplets::InitDraw(void)
|
||||
{
|
||||
if(CustomPipes::neoTxd)
|
||||
if(CustomPipes::neoTxd == nil)
|
||||
return;
|
||||
|
||||
ms_maskTex = CustomPipes::neoTxd->find("dropmask");
|
||||
|
||||
ms_screenTex = RwTextureCreate(nil);
|
||||
|
@ -136,6 +138,10 @@ ScreenDroplets::Shutdown(void)
|
|||
void
|
||||
ScreenDroplets::Process(void)
|
||||
{
|
||||
// no need to do anything if we can't render
|
||||
if(CustomPipes::neoTxd == nil)
|
||||
return;
|
||||
|
||||
ProcessCameraMovement();
|
||||
SprayDrops();
|
||||
ProcessMoving();
|
||||
|
@ -173,6 +179,9 @@ ScreenDroplets::Render(void)
|
|||
{
|
||||
ScreenDrop *drop;
|
||||
|
||||
if(CustomPipes::neoTxd == nil)
|
||||
return;
|
||||
|
||||
DefinedState();
|
||||
RwRenderStateSet(rwRENDERSTATETEXTURERASTER, RwTextureGetRaster(ms_maskTex));
|
||||
RwRenderStateSet(rwRENDERSTATEFOGENABLE, FALSE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue