From a75a5539a368df5e7c13ffb3ba38cc1918c65a3c Mon Sep 17 00:00:00 2001 From: "Asad M. Zaman" Date: Fri, 30 Jul 2004 01:52:47 +0000 Subject: [PATCH] dx9 need to conform to the new convention --- panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx b/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx index ea38795271..de33da576a 100755 --- a/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx +++ b/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx @@ -3499,7 +3499,7 @@ issue_tex_gen(const TexGenAttrib *attrib) { * Use the wrap mode from the texture coordinate set at index 1. */ DO_PSTATS_STUFF(_texture_state_pcollector.add_level(1)); - if (attrib->is_off()) { + if (attrib->is_empty()) { //enable_texturing(false); // reset the texcoordindex lookup to 0 @@ -3507,7 +3507,7 @@ issue_tex_gen(const TexGenAttrib *attrib) { _pD3DDevice->SetTextureStageState(0, D3DTSS_TEXTURETRANSFORMFLAGS, 0); _pD3DDevice->SetTextureStageState( 0, D3DTSS_TEXCOORDINDEX, 0); - } else if (attrib->get_mode() == TexGenAttrib::M_spherical) { + } else if (attrib->get_mode(TextureStage::get_default()) == TexGenAttrib::M_sphere_map) { #if 0 // best reflection on a sphere is achieved by camera space normals in directx