Skip to content

Commit

Permalink
Merge pull request #154 from rpavlik/fix-vulkan
Browse files Browse the repository at this point in the history
hello_xr: Fix vulkan's CHECK_CBSTATE
  • Loading branch information
rpavlik authored Dec 13, 2019
2 parents 69ef758 + 29663b3 commit e4b4611
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/tests/hello_xr/graphicsplugin_vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,13 @@ struct CmdBuffer {
return "(Unknown)";
}

#define CHECK_CBSTATE(s) \
do \
if (state != (s)) { \
(std::string(__FILE__) + "(" + std::to_string(__LINE__) + "): Expecting state " #s " from " + __FUNCTION__ + ", in " + \
StateString(state)); \
return false; \
} \
#define CHECK_CBSTATE(s) \
do \
if (state != (s)) { \
Log::Write(Log::Level::Error, std::string(__FILE__) + "(" + std::to_string(__LINE__) + \
"): Expecting state " #s " from " + __FUNCTION__ + ", in " + StateString(state)); \
return false; \
} \
while (0)

bool Init(VkDevice device, uint32_t queueFamilyIndex) {
Expand Down

0 comments on commit e4b4611

Please sign in to comment.