Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.
Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
12 lines
451 B
C++
12 lines
451 B
C++
#include "Render/DX7/TextureAllocationDX7.h"
|
|
|
|
// ORIGINAL_SITE: 0x0054A930 in fn_02323 (fragment)
|
|
void TextureAllocationDX7::Update(int enabled, const D3DDEVICEDESC7& caps) {
|
|
if (enabled != 0 && (caps.dpcTriCaps.dwTextureFilterCaps & D3DPTFILTERCAPS_LINEARMIPLINEAR)) {
|
|
this->descriptorFlags = DDSD_MIPMAPCOUNT;
|
|
this->surfaceCaps = DDSCAPS_COMPLEX | DDSCAPS_MIPMAP;
|
|
} else {
|
|
this->descriptorFlags = 0;
|
|
this->surfaceCaps = 0;
|
|
}
|
|
}
|