Fixed issue#197.

This commit is contained in:
Branimir Karadzic 2014-12-01 08:20:38 -08:00
parent 3e4b82e7fe
commit ca0e5ffb08
2 changed files with 9 additions and 9 deletions

View file

@ -58,7 +58,6 @@ static const int32_t DEFAULT_SPACING = 4;
static const int32_t TEXT_HEIGHT = 8;
static const int32_t SCROLL_AREA_PADDING = 6;
static const int32_t AREA_HEADER = 20;
static const int32_t COLOR_WHEEL_PADDING = 60;
static const float s_tabStops[4] = {150, 210, 270, 330};
static void* imguiMalloc(size_t size, void* /*_userptr*/)

View file

@ -2245,6 +2245,7 @@ again:
_width = bx::uint32_max(1, _width);
_height = bx::uint32_max(1, _height);
_depth = bx::uint32_max(1, _depth);
_numMips = bx::uint32_max(1, _numMips);
uint32_t width = _width;
uint32_t height = _height;
@ -2267,11 +2268,11 @@ again:
}
_info.format = _format;
_info.storageSize = size;
_info.width = _width;
_info.height = _height;
_info.depth = _depth;
_info.numMips = _numMips;
_info.storageSize = size;
_info.bitsPerPixel = bpp;
}