From ed1034f4f9b8f703402f120b6abe1aef5c5400a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 5 Dec 2015 19:45:14 -0800 Subject: [PATCH] Cleanup. --- src/renderer_mtl.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer_mtl.mm b/src/renderer_mtl.mm index 7bf3eb71..db34fb96 100644 --- a/src/renderer_mtl.mm +++ b/src/renderer_mtl.mm @@ -724,7 +724,7 @@ namespace bgfx { namespace mtl void saveScreenShot(const char* _filePath) BX_OVERRIDE { if (NULL == m_drawable - || NULL == m_drawable.texture) + || NULL == m_drawable.texture) { return; } @@ -733,7 +733,7 @@ namespace bgfx { namespace mtl //TODO: implement this with saveScreenshotBegin/End Texture backBuffer = m_drawable.texture; - uint32_t width = backBuffer.width(); + uint32_t width = backBuffer.width(); uint32_t height = backBuffer.height(); uint32_t length = width*height*4; uint8_t* data = (uint8_t*)BX_ALLOC(g_allocator, length); @@ -858,7 +858,7 @@ namespace bgfx { namespace mtl void flip(HMD& /*_hmd*/) BX_OVERRIDE { if (NULL == m_drawable - || NULL == m_commandBuffer) + || NULL == m_commandBuffer) { return; }