Maintenance: Owner-approved acceptance of KWDev batch 10495 (identical payload). fn_45500 DeviceOwnerDX9::UpdateMipmapFiltering 0x54C

Batch #10498 by ragnarok-clanker: forced by an admin (0 lower score(s), 3 changed function(s)); checked with 2 compiled unit(s).
This commit is contained in:
ragnarok-clanker 2026-11-04 10:34:53 +00:00
commit 66d7d76302
2 changed files with 10 additions and 2 deletions

View file

@ -214,7 +214,7 @@ HRESULT DeviceOwnerDX9::Initialize(HWND value, UINT selectedAdapter) {
this->state.Initialize(this->device);
this->state.SetInitialStates();
this->dynamicTextures = (this->caps.Caps2 & D3DCAPS2_DYNAMICTEXTURES) != 0 && g_textureFiltering != 0;
this->UpdateMipmapFiltering();
this->ClipFullscreenCursor();
return D3D_OK;
@ -249,6 +249,14 @@ HRESULT DeviceOwnerDX9::Close() {
}
// OFFSET: 0x0054C020
// FUNCTION: fn_45500
void DeviceOwnerDX9::UpdateMipmapFiltering() {
if (!(this->caps.TextureFilterCaps & D3DPTFILTERCAPS_MIPFLINEAR)) {
this->dynamicTextures = false;
} else {
this->dynamicTextures = g_textureFiltering != 0;
}
}
// OFFSET: 0x0054C070
// FUNCTION: fn_01917

View file

@ -125,7 +125,7 @@ std::shared_ptr<CSurface> CRenderSystemDX9::BackBufferSurface() {
// OFFSET: 0x0056D740
// FUNCTION: fn_02365
void CRenderSystemDX9::UpdateOption() {
this->m_device->dynamicTextures = (this->m_device->caps.Caps2 & D3DCAPS2_DYNAMICTEXTURES) != 0 && g_textureFiltering != 0;
this->m_device->UpdateMipmapFiltering();
}
// OFFSET: 0x0056D760