From 867696f1dc97674f12f1769e63d735f02cd6ed1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 3 Nov 2015 17:20:20 -0800 Subject: [PATCH] Cleanup. --- examples/26-occlusion/occlusion.cpp | 5 ++++- src/renderer_d3d9.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/26-occlusion/occlusion.cpp b/examples/26-occlusion/occlusion.cpp index afe7c780..223f02d0 100644 --- a/examples/26-occlusion/occlusion.cpp +++ b/examples/26-occlusion/occlusion.cpp @@ -254,7 +254,10 @@ class Occlusion : public entry::AppI } } - bgfx::dbgTextImage(5, 5, CUBES_DIM, CUBES_DIM, img, CUBES_DIM*2); + for (uint32_t xx = 0; xx < CUBES_DIM; ++xx) + { + bgfx::dbgTextImage(5 + xx*2, 5, 1, CUBES_DIM, img + xx*2, CUBES_DIM*2); + } // Advance to next frame. Rendering thread will be kicked to // process submitted rendering primitives. diff --git a/src/renderer_d3d9.cpp b/src/renderer_d3d9.cpp index 1697989c..04351451 100644 --- a/src/renderer_d3d9.cpp +++ b/src/renderer_d3d9.cpp @@ -3434,7 +3434,7 @@ namespace bgfx { namespace d3d9 { Query& query = m_query[m_control.m_read]; - uint64_t result; + uint32_t result; HRESULT hr = query.m_ptr->GetData(&result, sizeof(result), 0); if (S_FALSE == hr) {