1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-12-22 23:10:00 +00:00

Add multisampling to librw

This commit is contained in:
Sergeanur 2020-11-28 15:13:06 +02:00
parent f50a53e290
commit 18d0fd2e48
5 changed files with 10 additions and 3 deletions

View file

@ -353,5 +353,4 @@ enum Config {
#ifdef LIBRW #ifdef LIBRW
// these are not supported with librw yet // these are not supported with librw yet
# undef MULTISAMPLING
#endif #endif

View file

@ -601,6 +601,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; }

View file

@ -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);

View file

@ -834,6 +834,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

@ -1 +1 @@
Subproject commit e8990d5b3d50be72594f93dcc42d749f29761516 Subproject commit 2066cf6634383e056cd5dda105e87f8da04b1ed8