[Scummvm-git-logs] scummvm master -> ddc2de5e4f6f4598d0606f59a563bdda6eaaeebe
bluegr
noreply at scummvm.org
Mon Nov 20 10:39:33 UTC 2023
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:
ddc2de5e4f BACKENDS: OPENGL: Fix FakeTexture palette init. PVS-Studio V1086
Commit: ddc2de5e4f6f4598d0606f59a563bdda6eaaeebe
https://github.com/scummvm/scummvm/commit/ddc2de5e4f6f4598d0606f59a563bdda6eaaeebe
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2023-11-20T12:39:29+02:00
Commit Message:
BACKENDS: OPENGL: Fix FakeTexture palette init. PVS-Studio V1086
Changed paths:
backends/graphics/opengl/texture.cpp
diff --git a/backends/graphics/opengl/texture.cpp b/backends/graphics/opengl/texture.cpp
index 4fdc19ef049..a7ca8ff73ae 100644
--- a/backends/graphics/opengl/texture.cpp
+++ b/backends/graphics/opengl/texture.cpp
@@ -391,8 +391,7 @@ FakeTexture::FakeTexture(GLenum glIntFormat, GLenum glFormat, GLenum glType, con
_palette(nullptr),
_mask(nullptr) {
if (_fakeFormat.isCLUT8()) {
- _palette = new uint32[256];
- memset(_palette, 0, sizeof(uint32));
+ _palette = new uint32[256]();
}
}
More information about the Scummvm-git-logs
mailing list