From 5000348067a8802fcd6f65ef7f542ae263f4c22f Mon Sep 17 00:00:00 2001 From: aignacio_sf <> Date: Sat, 3 Jun 2006 03:12:41 +0000 Subject: [PATCH] Use the GSG set_sampler_state function instead of the DX9 function directly. --- panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx b/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx index d1a501c338..a9bc44fcd3 100755 --- a/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx +++ b/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx @@ -240,7 +240,7 @@ apply_texture(int i, TextureContext *tc) { if (!get_supports_compressed_texture_format(tc->get_texture()->get_ram_image_compression())) { dxgsg9_cat.error() << *dtc->get_texture() << " is stored in an unsupported compressed format.\n"; - _d3d_device->SetTextureStageState(i, D3DTSS_COLOROP, D3DTOP_DISABLE); + set_texture_stage_state(i, D3DTSS_COLOROP, D3DTOP_DISABLE); return; }