fix in d3d texstage cache

This commit is contained in:
aap 2020-08-07 16:34:26 +02:00
parent 89901f925e
commit d92996c66d
1 changed files with 6 additions and 0 deletions

View File

@ -1523,6 +1523,12 @@ initD3D(void)
d3ddevice->GetSamplerState(s, (D3DSAMPLERSTATETYPE)t, (DWORD*)&d3dSamplerStates[t][s]);
d3dSamplerStates[t][s] = d3dSamplerStates[t][s];
}
// init rw cache
for(t = 0; t < MAXNUMSTAGES; t++){
setFilterMode(t, Texture::NEAREST);
setAddressU(t, Texture::WRAP);
setAddressV(t, Texture::WRAP);
}
openIm2D();
openIm3D();