summaryrefslogtreecommitdiffstats
path: root/platform/linuxbsd/gl_manager_x11.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-04-06 15:47:20 +0200
committerGitHub <noreply@github.com>2022-04-06 15:47:20 +0200
commitac591d9904e4e5cf7841b3e79caabf558d37db0e (patch)
tree70f3bd487e91feb4ca777dba214a09b17041da97 /platform/linuxbsd/gl_manager_x11.h
parent72407a9cfbd4f58102972c0910429f3ab7006f07 (diff)
parentf851c4aa330e1064a66db50be62db2466f4fb768 (diff)
downloadredot-engine-ac591d9904e4e5cf7841b3e79caabf558d37db0e.tar.gz
Merge pull request #59911 from bruvzg/cppcheck_fixes
Diffstat (limited to 'platform/linuxbsd/gl_manager_x11.h')
-rw-r--r--platform/linuxbsd/gl_manager_x11.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/platform/linuxbsd/gl_manager_x11.h b/platform/linuxbsd/gl_manager_x11.h
index e89caf3b30..fb2c74a2b6 100644
--- a/platform/linuxbsd/gl_manager_x11.h
+++ b/platform/linuxbsd/gl_manager_x11.h
@@ -52,15 +52,14 @@ public:
private:
// any data specific to the window
struct GLWindow {
- GLWindow() { in_use = false; }
- bool in_use;
+ bool in_use = false;
// the external ID .. should match the GL window number .. unused I think
- DisplayServer::WindowID window_id;
- int width;
- int height;
+ DisplayServer::WindowID window_id = DisplayServer::INVALID_WINDOW_ID;
+ int width = 0;
+ int height = 0;
::Window x11_window;
- int gldisplay_id;
+ int gldisplay_id = 0;
};
struct GLDisplay {