diff --git a/panda/src/dxgsg/dxGraphicsStateGuardian.cxx b/panda/src/dxgsg/dxGraphicsStateGuardian.cxx index 7bc3e5976b..2d211df366 100644 --- a/panda/src/dxgsg/dxGraphicsStateGuardian.cxx +++ b/panda/src/dxgsg/dxGraphicsStateGuardian.cxx @@ -3030,7 +3030,7 @@ apply_texture(TextureContext *tc) { Texture *tex = tc->_texture; Texture::WrapMode wrapU,wrapV; wrapU=tex->get_wrapu(); - wrapV=tex->get_wrapu(); + wrapV=tex->get_wrapv(); if (wrapU!=_CurTexWrapModeU) _d3dDevice->SetTextureStageState(0,D3DTSS_ADDRESSU,get_texture_wrap_mode(wrapU));