mirror of
https://github.com/halpz/re3.git
synced 2025-06-30 09:36:21 +00:00
Add multisampling to librw
# Conflicts: # src/core/config.h # vendor/librw
This commit is contained in:
@ -578,6 +578,9 @@ void RwD3D8EngineSetRefreshRate(RwUInt32 refreshRate) {}
|
||||
RwBool RwD3D8DeviceSupportsDXTTexture(void) { return true; }
|
||||
|
||||
|
||||
void RwD3D8EngineSetMultiSamplingLevels(RwUInt32 level) { Engine::setMultiSamplingLevels(level); }
|
||||
RwUInt32 RwD3D8EngineGetMaxMultiSamplingLevels(void) { return Engine::getMaxMultiSamplingLevels(); }
|
||||
|
||||
|
||||
RpMaterial *RpMaterialCreate(void) { return Material::create(); }
|
||||
RwBool RpMaterialDestroy(RpMaterial *material) { material->destroy(); return true; }
|
||||
|
@ -411,3 +411,5 @@ RwFrame *RwCameraGetFrame(const RwCamera *camera);
|
||||
|
||||
void RwD3D8EngineSetRefreshRate(RwUInt32 refreshRate);
|
||||
RwBool RwD3D8DeviceSupportsDXTTexture(void);
|
||||
void RwD3D8EngineSetMultiSamplingLevels(RwUInt32 level);
|
||||
RwUInt32 RwD3D8EngineGetMaxMultiSamplingLevels(void);
|
||||
|
@ -841,7 +841,10 @@ psSelectDevice()
|
||||
|
||||
PSGLOBAL(fullScreen) = !FrontEndMenuManager.m_nPrefsWindowed;
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef MULTISAMPLING
|
||||
RwD3D8EngineSetMultiSamplingLevels(1 << FrontEndMenuManager.m_nPrefsMSAALevel);
|
||||
#endif
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user