[Scummvm-git-logs] scummvm master -> d8c8f8d75f8dd8364b5d0516ee5765dab5e0de02
eriktorbjorn
noreply at scummvm.org
Fri Oct 25 21:02:40 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
d8c8f8d75f CRAB: Make sure _texture is created in all Image::load() methods
Commit: d8c8f8d75f8dd8364b5d0516ee5765dab5e0de02
https://github.com/scummvm/scummvm/commit/d8c8f8d75f8dd8364b5d0516ee5765dab5e0de02
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2024-10-25T23:01:32+02:00
Commit Message:
CRAB: Make sure _texture is created in all Image::load() methods
Changed paths:
engines/crab/image/Image.cpp
diff --git a/engines/crab/image/Image.cpp b/engines/crab/image/Image.cpp
index 1377b603ca7..029a9b9cc2a 100644
--- a/engines/crab/image/Image.cpp
+++ b/engines/crab/image/Image.cpp
@@ -47,6 +47,7 @@ using namespace pyrodactyl::image;
bool Image::load(Graphics::Surface *surface) {
deleteImage();
+ _texture = new Graphics::ManagedSurface();
_texture->create(surface->w, surface->h, surface->format);
_texture->copyFrom(*surface);
More information about the Scummvm-git-logs
mailing list