gs-texture: Undo removal of mip_data check
This commit is contained in:
parent
04d7379ff1
commit
f78be9c387
|
|
@ -40,8 +40,8 @@ gs::texture::texture(uint32_t width, uint32_t height, gs_color_format format, ui
|
|||
throw std::logic_error("height must be at least 1");
|
||||
if (mip_levels == 0)
|
||||
throw std::logic_error("mip_levels must be at least 1");
|
||||
//if (!mip_data)
|
||||
// throw std::logic_error("mip_data is invalid");
|
||||
if (!mip_data)
|
||||
throw std::logic_error("mip_data is invalid");
|
||||
|
||||
if (mip_levels > 1 || ((texture_flags & flags::BuildMipMaps) == flags::BuildMipMaps)) {
|
||||
bool isPOT = util::math::is_power_of_two(width) && util::math::is_power_of_two(height);
|
||||
|
|
|
|||
Loading…
Reference in New Issue