diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-03-04 18:09:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-04 18:09:31 +0100 |
commit | 4514de43847794647841f1dddb50d37c936eabfa (patch) | |
tree | 6765b8de89f738a890a6ef86b0a747a301216ba7 | |
parent | 9c6b6ffe135d2defc532075fd25816e43a636482 (diff) | |
parent | 44e82f70735f1893fcc7e3d6b3422731030aa36c (diff) |
Merge pull request #58754 from akien-mga/gles3-maybe-uninitialized
-rw-r--r-- | drivers/gles3/rasterizer_storage_gles3.h | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.h b/drivers/gles3/rasterizer_storage_gles3.h index 462c6af89f..64ed36ddd7 100644 --- a/drivers/gles3/rasterizer_storage_gles3.h +++ b/drivers/gles3/rasterizer_storage_gles3.h @@ -1169,27 +1169,21 @@ public: int height = 0; GLuint color = 0; - - Effect() { - } }; Effect copy_screen_effect; struct MipMaps { struct Size { - GLuint fbo; - GLuint color; - int width; - int height; + GLuint fbo = 0; + GLuint color = 0; + int width = 0; + int height = 0; }; Vector<Size> sizes; GLuint color = 0; int levels = 0; - - MipMaps() { - } }; MipMaps mip_maps[2]; @@ -1199,14 +1193,14 @@ public: GLuint color = 0; GLuint depth = 0; RID texture; - - External() { - } } external; - int x = 0, y = 0, width = 0, height = 0; + int x = 0; + int y = 0; + int width = 0; + int height = 0; - bool flags[RENDER_TARGET_FLAG_MAX]; + bool flags[RENDER_TARGET_FLAG_MAX] = {}; // instead of allocating sized render targets immediately, // defer this for faster startup |