Ver Fonte

Use the GSG set_sampler_state function instead of the DX9 function directly.

aignacio_sf há 19 anos atrás
pai
commit
5000348067
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx

+ 1 - 1
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;
     }