mirror of
https://github.com/aap/librw.git
synced 2025-12-19 08:59:51 +00:00
fix in d3d texstage cache
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user