mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-15 11:49:00 +00:00
Add multisampling to librw
# Conflicts: # src/core/config.h # vendor/librw
This commit is contained in:
parent
b8d3d8f5e4
commit
16abbad6b2
4 changed files with 10 additions and 2 deletions
|
@ -578,6 +578,9 @@ void RwD3D8EngineSetRefreshRate(RwUInt32 refreshRate) {}
|
||||||
RwBool RwD3D8DeviceSupportsDXTTexture(void) { return true; }
|
RwBool RwD3D8DeviceSupportsDXTTexture(void) { return true; }
|
||||||
|
|
||||||
|
|
||||||
|
void RwD3D8EngineSetMultiSamplingLevels(RwUInt32 level) { Engine::setMultiSamplingLevels(level); }
|
||||||
|
RwUInt32 RwD3D8EngineGetMaxMultiSamplingLevels(void) { return Engine::getMaxMultiSamplingLevels(); }
|
||||||
|
|
||||||
|
|
||||||
RpMaterial *RpMaterialCreate(void) { return Material::create(); }
|
RpMaterial *RpMaterialCreate(void) { return Material::create(); }
|
||||||
RwBool RpMaterialDestroy(RpMaterial *material) { material->destroy(); return true; }
|
RwBool RpMaterialDestroy(RpMaterial *material) { material->destroy(); return true; }
|
||||||
|
|
|
@ -411,3 +411,5 @@ RwFrame *RwCameraGetFrame(const RwCamera *camera);
|
||||||
|
|
||||||
void RwD3D8EngineSetRefreshRate(RwUInt32 refreshRate);
|
void RwD3D8EngineSetRefreshRate(RwUInt32 refreshRate);
|
||||||
RwBool RwD3D8DeviceSupportsDXTTexture(void);
|
RwBool RwD3D8DeviceSupportsDXTTexture(void);
|
||||||
|
void RwD3D8EngineSetMultiSamplingLevels(RwUInt32 level);
|
||||||
|
RwUInt32 RwD3D8EngineGetMaxMultiSamplingLevels(void);
|
||||||
|
|
|
@ -842,6 +842,9 @@ psSelectDevice()
|
||||||
PSGLOBAL(fullScreen) = !FrontEndMenuManager.m_nPrefsWindowed;
|
PSGLOBAL(fullScreen) = !FrontEndMenuManager.m_nPrefsWindowed;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef MULTISAMPLING
|
||||||
|
RwD3D8EngineSetMultiSamplingLevels(1 << FrontEndMenuManager.m_nPrefsMSAALevel);
|
||||||
|
#endif
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
vendor/librw
vendored
2
vendor/librw
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit d9def88c46a742c6bc74bf79021c0f8838480df4
|
Subproject commit efc0c307d79e8a7a7586cfecde109257b9fac738
|
Loading…
Reference in a new issue