From 474d5cd07be12dec9d89e4f029fddbdf72f35d1f Mon Sep 17 00:00:00 2001 From: Courtney Goeltzenleuchter Date: Wed, 29 Jul 2015 10:53:07 -0600 Subject: bug-14330: Initialize handle on Vulkan objects https://cvs.khronos.org/bugzilla/show_bug.cgi?id=14330 Accepted in gl_common 7/27 --- include/vulkan.h | 4 ++-- 1 file 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; } \ -- cgit v1.2.3