[Scummvm-git-logs] scummvm master -> 09d447c2113b64738cc6a9fc4e8d4807f9ea7e93

aquadran noreply at scummvm.org
Mon Dec 20 17:40:49 UTC 2021


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:
09d447c211 PLAYGROUND3D: Fix minor coverity warnings


Commit: 09d447c2113b64738cc6a9fc4e8d4807f9ea7e93
    https://github.com/scummvm/scummvm/commit/09d447c2113b64738cc6a9fc4e8d4807f9ea7e93
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2021-12-20T18:40:41+01:00

Commit Message:
PLAYGROUND3D: Fix minor coverity warnings

Changed paths:
    engines/playground3d/gfx.cpp
    engines/playground3d/gfx_opengl_shaders.cpp
    engines/playground3d/gfx_tinygl.cpp
    engines/playground3d/playground3d.cpp


diff --git a/engines/playground3d/gfx.cpp b/engines/playground3d/gfx.cpp
index a584fd17f3..e0b2469ddc 100644
--- a/engines/playground3d/gfx.cpp
+++ b/engines/playground3d/gfx.cpp
@@ -71,7 +71,7 @@ const float Renderer::cubeVertices[] = {
 };
 
 Renderer::Renderer(OSystem *system)
-		: _system(system) {
+		: _system(system), _texture(nullptr) {
 }
 
 Renderer::~Renderer() {
diff --git a/engines/playground3d/gfx_opengl_shaders.cpp b/engines/playground3d/gfx_opengl_shaders.cpp
index fb3156b1b7..fed42053f6 100644
--- a/engines/playground3d/gfx_opengl_shaders.cpp
+++ b/engines/playground3d/gfx_opengl_shaders.cpp
@@ -64,6 +64,7 @@ ShaderRenderer::ShaderRenderer(OSystem *system) :
 		_currentViewport(kOriginalWidth, kOriginalHeight),
 		_cubeShader(nullptr),
 		_fadeShader(nullptr),
+		_bitmapShader(nullptr),
 		_cubeVBO(0),
 		_fadeVBO(0),
 		_bitmapVBO(0) {
diff --git a/engines/playground3d/gfx_tinygl.cpp b/engines/playground3d/gfx_tinygl.cpp
index d94854e13d..253e3a8702 100644
--- a/engines/playground3d/gfx_tinygl.cpp
+++ b/engines/playground3d/gfx_tinygl.cpp
@@ -76,7 +76,12 @@ Renderer *CreateGfxTinyGL(OSystem *system) {
 }
 
 TinyGLRenderer::TinyGLRenderer(OSystem *system) :
-		Renderer(system) {
+		Renderer(system),
+		_blitImageRgba(nullptr),
+		_blitImageRgb(nullptr),
+		_blitImageRgb565(nullptr),
+		_blitImageRgba5551(nullptr),
+		_blitImageRgba4444(nullptr) {
 }
 
 TinyGLRenderer::~TinyGLRenderer() {
diff --git a/engines/playground3d/playground3d.cpp b/engines/playground3d/playground3d.cpp
index afe2e1f062..5b71abcbf4 100644
--- a/engines/playground3d/playground3d.cpp
+++ b/engines/playground3d/playground3d.cpp
@@ -45,7 +45,7 @@ bool Playground3dEngine::hasFeature(EngineFeature f) const {
 }
 
 Playground3dEngine::Playground3dEngine(OSystem *syst)
-		: Engine(syst), _system(syst), _frameLimiter(nullptr),
+		: Engine(syst), _system(syst), _gfx(nullptr), _frameLimiter(nullptr),
 		_rotateAngleX(0), _rotateAngleY(0), _rotateAngleZ(0),
 		_clearColor(0.0f, 0.0f, 0.0f, 1.0f), _fade(1.0f), _fadeIn(false),
 		_rgbaTexture(nullptr), _rgbTexture(nullptr), _rgb565Texture(nullptr),




More information about the Scummvm-git-logs mailing list