aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/vulkan.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/vulkan.h b/include/vulkan.h
index a6a171fc..0034d6f8 100644
--- a/include/vulkan.h
+++ b/include/vulkan.h
@@ -61,8 +61,8 @@ extern "C" {
#endif
#define VK_DEFINE_NONDISP_HANDLE(obj) \
struct obj { \
- obj() { } \
- obj(uint64_t x) { handle = x; } \
+ obj() : handle(0) { } \
+ obj(uint64_t x) : handle(x) { } \
obj& operator =(uint64_t x) { handle = x; return *this; } \
bool operator==(const obj& other) const { return handle == other.handle; } \
bool operator!=(const obj& other) const { return handle != other.handle; } \