color-management-v1: only expose the protocol with vulkan
This commit is contained in:
parent
248eb324a5
commit
fcd2e3ab33
7 changed files with 40 additions and 2 deletions
|
|
@ -363,6 +363,10 @@ impl GfxContext for Context {
|
|||
let buffer = self.0.acquire_blend_buffer(width, height)?;
|
||||
Ok(buffer)
|
||||
}
|
||||
|
||||
fn supports_color_management(&self) -> bool {
|
||||
self.0.device.descriptor_buffer.is_some()
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Context {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue