forked from blender/blender
Render fixes after refactoring #79
@ -131,8 +131,11 @@ void RenderTaskDelegate::read_aov(pxr::TfToken const &aov_key, GPUTexture *textu
|
|||||||
if (!buffer) {
|
if (!buffer) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
eGPUDataFormat format = buffer->GetFormat() == pxr::HdFormat::HdFormatFloat16Vec4 ?
|
||||||
|
GPU_DATA_HALF_FLOAT :
|
||||||
|
GPU_DATA_FLOAT;
|
||||||
void *buf_data = buffer->Map();
|
void *buf_data = buffer->Map();
|
||||||
GPU_texture_update(texture, GPU_DATA_FLOAT, buf_data);
|
GPU_texture_update(texture, format, buf_data);
|
||||||
buffer->Unmap();
|
buffer->Unmap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user