Skip to content

Commit 29663b3

Browse files
committed
hello_xr: Fix vulkan's CHECK_CBSTATE
1 parent 69ef758 commit 29663b3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/tests/hello_xr/graphicsplugin_vulkan.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,13 +220,13 @@ struct CmdBuffer {
220220
return "(Unknown)";
221221
}
222222

223-
#define CHECK_CBSTATE(s) \
224-
do \
225-
if (state != (s)) { \
226-
(std::string(__FILE__) + "(" + std::to_string(__LINE__) + "): Expecting state " #s " from " + __FUNCTION__ + ", in " + \
227-
StateString(state)); \
228-
return false; \
229-
} \
223+
#define CHECK_CBSTATE(s) \
224+
do \
225+
if (state != (s)) { \
226+
Log::Write(Log::Level::Error, std::string(__FILE__) + "(" + std::to_string(__LINE__) + \
227+
"): Expecting state " #s " from " + __FUNCTION__ + ", in " + StateString(state)); \
228+
return false; \
229+
} \
230230
while (0)
231231

232232
bool Init(VkDevice device, uint32_t queueFamilyIndex) {

0 commit comments

Comments
 (0)