mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-01 16:53:01 +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
96e971e364
commit
9cf2881779
1 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,7 @@ void RwD3D8GetRenderState(RwUInt32 state, void* value)
|
||||||
fnRwD3D8GetRenderState(state, value);
|
fnRwD3D8GetRenderState(state, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef RwIm2DGetNearScreenZ
|
||||||
RwReal RwIm2DGetNearScreenZ()
|
RwReal RwIm2DGetNearScreenZ()
|
||||||
{
|
{
|
||||||
return RWSRCGLOBAL(dOpenDevice).zBufferNear;
|
return RWSRCGLOBAL(dOpenDevice).zBufferNear;
|
||||||
|
@ -66,6 +67,7 @@ RwBool RwRenderStateSet(RwRenderState state, void *value)
|
||||||
{
|
{
|
||||||
return RWSRCGLOBAL(dOpenDevice).fpRenderStateSet(state, value);
|
return RWSRCGLOBAL(dOpenDevice).fpRenderStateSet(state, value);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Unreachable stub
|
// Unreachable stub
|
||||||
RwBool RwMatrixDestroy(RwMatrix* /*mpMat*/) { assert(!"Unreachable!"); return TRUE; }
|
RwBool RwMatrixDestroy(RwMatrix* /*mpMat*/) { assert(!"Unreachable!"); return TRUE; }
|
||||||
|
|
Loading…
Reference in a new issue