Skip to content

Commit

Permalink
fix in d3d texstage cache
Browse files Browse the repository at this point in the history
  • Loading branch information
aap committed Aug 7, 2020
1 parent 89901f9 commit d92996c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/d3d/d3ddevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d92996c

Please sign in to comment.