layers: Fix Win32 build errors in draw_state
authorMark Lobodzinski <mark@lunarg.com>
Tue, 16 Feb 2016 01:23:12 +0000 (18:23 -0700)
committerMark Lobodzinski <mark@lunarg.com>
Tue, 16 Feb 2016 01:23:12 +0000 (18:23 -0700)
layers/draw_state.cpp

index 940f49e..f76bddb 100644 (file)
@@ -7254,7 +7254,7 @@ bool validateSecondaryCommandBufferState(layer_data *dev_data,
                   ". Pipeline statistics is being queried so the command "
                   "buffer must have all bits set on the queryPool.",
                   reinterpret_cast<void *>(pCB->commandBuffer),
-                  reinterpret_cast<uint64_t>(queryPoolData->first));
+                  reinterpret_cast<const uint64_t&>(queryPoolData->first));
             }
             }
             activeTypes.insert(queryPoolData->second.createInfo.queryType);
@@ -7273,7 +7273,7 @@ bool validateSecondaryCommandBufferState(layer_data *dev_data,
                     "of type %d but a query of that type has been started on "
                     "secondary Cmd Buffer %p.",
                     reinterpret_cast<void *>(pCB->commandBuffer),
-                    reinterpret_cast<uint64_t>(queryPoolData->first),
+                    reinterpret_cast<const uint64_t&>(queryPoolData->first),
                     queryPoolData->second.createInfo.queryType,
                     reinterpret_cast<void *>(pSubCB->commandBuffer));
         }