From 7e59df5359ddb1758150ea30903d775695862a29 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 20 Jun 2001 07:10:27 +0000 Subject: [PATCH] fix alt-tab --- panda/src/gobj/texture.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/panda/src/gobj/texture.cxx b/panda/src/gobj/texture.cxx index 282e91390d..864dcf911c 100644 --- a/panda/src/gobj/texture.cxx +++ b/panda/src/gobj/texture.cxx @@ -232,7 +232,12 @@ load(const PNMImage &pnmimage) { if (!_pbuffer->load(pnmimage)) return false; - unprepare(); + // It's not a good idea to call this here, since this function might + // be called from within the GSG itself--which won't expect the + // texture to suddenly unprepare itself. Better to have the user + // explicitly unprepare() the texture if she loads a new file. + // unprepare(); + return true; }