layers: Fix android build of draw_state
authorTobin Ehlis <tobine@google.com>
Tue, 8 Mar 2016 17:51:34 +0000 (10:51 -0700)
committerTobin Ehlis <tobine@google.com>
Tue, 8 Mar 2016 17:51:34 +0000 (10:51 -0700)
Need to static cast NULL to VkFence in FENCE_NODE constructor.

layers/draw_state.h

index e00f81f3ea1fcaa27148f3fe1d6b0db10dc6bd36..aead70e98873822422e95de9c5a455f07bc8ae8e 100644 (file)
@@ -373,7 +373,8 @@ class FENCE_NODE : public BASE_NODE {
     VkFence priorFence;
 
     // Default constructor
-    FENCE_NODE() : queue(NULL), needsSignaled(VK_FALSE), priorFence(NULL) {};
+    FENCE_NODE() : queue(NULL), needsSignaled(VK_FALSE),
+                   priorFence(static_cast<VkFence>(NULL)) {};
 
 };