From: Adeel Kazmi Date: Mon, 5 Feb 2024 10:46:48 +0000 (+0000) Subject: SVACE fix in gles-graphics-texture.cpp X-Git-Tag: dali_2.3.10~3^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=f818585ec51bc4443ed9593995e75ac59e6e0016;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git SVACE fix in gles-graphics-texture.cpp Change-Id: I3d236da3346bb9413d2a0a096b2b2ea4eec21143 --- diff --git a/dali/internal/graphics/gles-impl/gles-graphics-texture.cpp b/dali/internal/graphics/gles-impl/gles-graphics-texture.cpp index 2151d5b..cd4b66d 100644 --- a/dali/internal/graphics/gles-impl/gles-graphics-texture.cpp +++ b/dali/internal/graphics/gles-impl/gles-graphics-texture.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2023 Samsung Electronics Co., Ltd. + * Copyright (c) 2024 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. @@ -424,9 +424,9 @@ bool Texture::TryConvertPixelData(const void* pData, Graphics::Format srcFormat, void Texture::SetSamplerParameter(uint32_t param, uint32_t& cacheValue, uint32_t value) const { - if(cacheValue != value) + auto gl = mController.GetGL(); + if(gl && cacheValue != value) { - auto gl = mController.GetGL(); gl->TexParameteri(mGlTarget, param, value); cacheValue = value; }