diff options
| author | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-07-29 10:53:07 -0600 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-07-29 11:05:50 -0600 |
| commit | 474d5cd07be12dec9d89e4f029fddbdf72f35d1f (patch) | |
| tree | 256e52b4947419786afd62ec95af7ba3b24f9dab | |
| parent | e3a40c7806c694c1e8d4d58e2186c30100173ff8 (diff) | |
| download | usermoji-474d5cd07be12dec9d89e4f029fddbdf72f35d1f.tar.xz | |
bug-14330: Initialize handle on Vulkan objects
https://cvs.khronos.org/bugzilla/show_bug.cgi?id=14330
Accepted in gl_common 7/27
| -rw-r--r-- | include/vulkan.h | 4 |
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; } \ |
