From 18769163a2ce74daaa6f0d70eaec52818cc15a16 Mon Sep 17 00:00:00 2001 From: scawful Date: Thu, 30 May 2024 18:10:11 -0400 Subject: [PATCH] remove shared ptr reset in bitmap cleanup --- src/app/gfx/bitmap.h | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/app/gfx/bitmap.h b/src/app/gfx/bitmap.h index b9b157ac..03eaa132 100644 --- a/src/app/gfx/bitmap.h +++ b/src/app/gfx/bitmap.h @@ -185,23 +185,7 @@ class Bitmap { } void Cleanup() { - // Reset texture_ - if (texture_) { - texture_.reset(); - } - - // Reset surface_ and its pixel data - if (surface_) { - surface_->pixels = nullptr; - surface_.reset(); - } - - // Reset data_ - data_.clear(); - - // Reset other members if necessary active_ = false; - pixel_data_ = nullptr; width_ = 0; height_ = 0; depth_ = 0;