forked from blender/blender
Fixed rendering for MacOS #82
@ -202,12 +202,7 @@ void GPURenderTaskDelegate::add_aov(pxr::TfToken const &aov_key)
|
||||
eGPUTextureFormat format;
|
||||
GPUTexture **tex;
|
||||
if (aov_key == pxr::HdAovTokens->color) {
|
||||
if (buffer_descriptors_[buffer_id(aov_key)].format == pxr::HdFormat::HdFormatFloat16Vec4) {
|
||||
format = GPU_RGBA16F;
|
||||
}
|
||||
else {
|
||||
format = GPU_RGBA32F;
|
||||
}
|
||||
tex = &tex_color_;
|
||||
}
|
||||
else if (aov_key == pxr::HdAovTokens->depth) {
|
||||
|
@ -183,7 +183,7 @@ void DrawTexture::write_data(int width, int height, const void *data)
|
||||
width,
|
||||
height,
|
||||
1,
|
||||
GPU_RGBA16F,
|
||||
GPU_RGBA32F,
|
||||
GPU_TEXTURE_USAGE_GENERAL,
|
||||
(float *)data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user