(SVACE Issues Fix) Initialise uninitialised member variables 96/247596/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 12 Nov 2020 12:06:33 +0000 (12:06 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Thu, 12 Nov 2020 12:06:44 +0000 (12:06 +0000)
Change-Id: Ief4f038f570daa911bc44274e9d960819e899497

dali/internal/graphics/gles/gl-extensions.cpp
dali/internal/system/common/configuration-manager.cpp

index 54c781a..f61d9dd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -36,11 +36,14 @@ namespace Adaptor
 GlExtensions::GlExtensions()
 :
 #ifdef GL_EXT_discard_framebuffer
-  mGlDiscardFramebuffer( NULL ),
+  mGlDiscardFramebuffer( nullptr ),
 #endif
 #ifdef GL_OES_get_program_binary
-  mGlGetProgramBinaryOES( NULL ),
-  mGlProgramBinaryOES( NULL ),
+  mGlGetProgramBinaryOES( nullptr ),
+  mGlProgramBinaryOES( nullptr ),
+#endif
+#ifdef GL_KHR_blend_equation_advanced
+  mBlendBarrierKHR( nullptr ),
 #endif
   mInitialized( false )
 {
index e37ae78..8ab98aa 100644 (file)
@@ -82,6 +82,7 @@ ConfigurationManager::ConfigurationManager( std::string systemCachePath, EglGrap
   mEglGraphics( eglGraphics ),
   mThreadController( threadController ),
   mMaxTextureSize( 0u ),
+  mGlslVersion( 0u),
   mIsMultipleWindowSupported( true ),
   mIsAdvancedBlendEquationSupported( true ),
   mMaxTextureSizeCached( false ),