OCIO: Fix mip length in texture creation
Also add an assert to avoid reproducing the error in the future.
This commit is contained in:
@@ -192,6 +192,7 @@ static inline GPUTexture *gpu_texture_create(const char *name,
|
||||
eGPUDataFormat data_format,
|
||||
const void *pixels)
|
||||
{
|
||||
BLI_assert(mips > 0);
|
||||
Texture *tex = GPUBackend::get()->texture_alloc(name);
|
||||
bool success = false;
|
||||
switch (type) {
|
||||
|
||||
Reference in New Issue
Block a user