All other API in configureation-manager wait until
GLES initialized.
Let GetMaxTextureSize() API also follow this role
Change-Id: Ieea15bdb5d807d344a9c1f6c153b2e29b69e7279
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 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.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
if(!mMaxTextureSizeCached)
{
if(!mMaxTextureSizeCached)
{
+ if(!mGraphics->IsInitialized())
+ {
+ // Wait until Graphics Subsystem is initialised, but this will happen once.
+ // This method blocks until the render thread has initialised the graphics.
+ mThreadController->WaitForGraphicsInitialization();
+ }
+
mMaxTextureSize = mGraphics->GetMaxTextureSize();
mMaxTextureSizeCached = true;
mMaxTextureSize = mGraphics->GetMaxTextureSize();
mMaxTextureSizeCached = true;