From 3255e51f1d0c5c9e2badafdbb8d6f0513aedc4cb Mon Sep 17 00:00:00 2001 From: Mark Wojtowicz Date: Wed, 28 Apr 2010 16:25:09 +0000 Subject: [PATCH] Bring in some lines from the DX9 gsg to fix textures getting swapped to their simple form but not getting reloaded. --- panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx b/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx index 7b61fd8a53..4a1a5643f4 100644 --- a/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx +++ b/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx @@ -298,6 +298,10 @@ upload_texture(DXTextureContext8 *dtc, bool force) { return false; } + dtc->delete_texture(); + dtc->update_data_size_bytes(0); + dtc->mark_unloaded(); + if (_effective_incomplete_render && !force) { bool has_image = _supports_compressed_texture ? tex->has_ram_image() : tex->has_uncompressed_ram_image(); if (!has_image && tex->might_have_ram_image() &&