mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 07:13:02 +05:00
SilentPatch: Don't define certain Rw* functions if not needed
Redefining them can cause strange compile errors with MinGW GCC
This commit is contained in:
parent
8093c055e6
commit
d5c3398606
1 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,7 @@ void RwD3D8GetRenderState(RwUInt32 state, void* value)
|
|||
fnRwD3D8GetRenderState(state, value);
|
||||
}
|
||||
|
||||
#ifndef RwIm2DGetNearScreenZ
|
||||
RwReal RwIm2DGetNearScreenZ()
|
||||
{
|
||||
return RWSRCGLOBAL(dOpenDevice).zBufferNear;
|
||||
|
@ -66,6 +67,7 @@ RwBool RwRenderStateSet(RwRenderState state, void *value)
|
|||
{
|
||||
return RWSRCGLOBAL(dOpenDevice).fpRenderStateSet(state, value);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Unreachable stub
|
||||
RwBool RwMatrixDestroy(RwMatrix* /*mpMat*/) { assert(!"Unreachable!"); return TRUE; }
|
||||
|
|
Loading…
Reference in a new issue