1
0
Fork 0
forked from wry/wry

color-management-v1: only expose the protocol with vulkan

This commit is contained in:
Julian Orth 2025-02-26 16:24:22 +01:00
parent 248eb324a5
commit fcd2e3ab33
7 changed files with 40 additions and 2 deletions

View file

@ -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 {