From c0ac10ad42c4110cbed0111c87e9784efab38704 Mon Sep 17 00:00:00 2001 From: Dario Manesku Date: Sat, 24 May 2014 20:16:40 +0100 Subject: [PATCH] Fixing a small typo bug. --- src/bgfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bgfx.cpp b/src/bgfx.cpp index 0714a6ea..645de420 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -1990,7 +1990,7 @@ namespace bgfx height = bx::uint32_max(1, height); depth = bx::uint32_max(1, depth); - size += _width*_height*depth*bpp/8; + size += width*height*depth*bpp/8; width >>= 1; height >>= 1;