mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 12:43:44 -04:00
Fix an error reported by DirectX in debug mode.
Can't pass 0 for SetTextureStageState (..., D3DSAMP_MAXANISOTROPY, ... )
This commit is contained in:
parent
680b7878e4
commit
9ea324117a
@ -217,7 +217,9 @@ apply_texture(int i, TextureContext *tc) {
|
|||||||
uint aniso_degree = tex->get_anisotropic_degree();
|
uint aniso_degree = tex->get_anisotropic_degree();
|
||||||
Texture::FilterType ft = tex->get_magfilter();
|
Texture::FilterType ft = tex->get_magfilter();
|
||||||
|
|
||||||
_d3d_device->SetTextureStageState(i, D3DTSS_MAXANISOTROPY, aniso_degree);
|
if (aniso_degree >= 1) {
|
||||||
|
_d3d_device->SetTextureStageState(i, D3DTSS_MAXANISOTROPY, aniso_degree);
|
||||||
|
}
|
||||||
|
|
||||||
D3DTEXTUREFILTERTYPE new_mag_filter;
|
D3DTEXTUREFILTERTYPE new_mag_filter;
|
||||||
if (aniso_degree <= 1) {
|
if (aniso_degree <= 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user