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) {
|
||||
return;
|
||||
}
|
||||
eGPUDataFormat format = buffer->GetFormat() == pxr::HdFormat::HdFormatFloat16Vec4 ?
|
||||
GPU_DATA_HALF_FLOAT :
|
||||
GPU_DATA_FLOAT;
|
||||
void *buf_data = buffer->Map();
|
||||
GPU_texture_update(texture, GPU_DATA_FLOAT, buf_data);
|
||||
GPU_texture_update(texture, format, buf_data);
|
||||
buffer->Unmap();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user