mirror of
https://github.com/aap/librw.git
synced 2025-03-31 15:08:31 +01:00
fix in d3d texstage cache
This commit is contained in:
parent
89901f925e
commit
d92996c66d
@ -1523,6 +1523,12 @@ initD3D(void)
|
|||||||
d3ddevice->GetSamplerState(s, (D3DSAMPLERSTATETYPE)t, (DWORD*)&d3dSamplerStates[t][s]);
|
d3ddevice->GetSamplerState(s, (D3DSAMPLERSTATETYPE)t, (DWORD*)&d3dSamplerStates[t][s]);
|
||||||
d3dSamplerStates[t][s] = 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();
|
openIm2D();
|
||||||
openIm3D();
|
openIm3D();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user