diff --git a/librashader-runtime-gl/src/filter_chain/filter_impl.rs b/librashader-runtime-gl/src/filter_chain/filter_impl.rs index 06fcd0b..cefa2e6 100644 --- a/librashader-runtime-gl/src/filter_chain/filter_impl.rs +++ b/librashader-runtime-gl/src/filter_chain/filter_impl.rs @@ -226,8 +226,8 @@ impl FilterChainImpl { // todo: split this out. let (program, ubo_location) = unsafe { - let vertex = util::gl_compile_shader(gl::VERTEX_SHADER, glsl.vertex.as_str()); - let fragment = util::gl_compile_shader(gl::FRAGMENT_SHADER, glsl.fragment.as_str()); + let vertex = util::gl_compile_shader(gl::VERTEX_SHADER, glsl.vertex.as_str())?; + let fragment = util::gl_compile_shader(gl::FRAGMENT_SHADER, glsl.fragment.as_str())?; let program = gl::CreateProgram(); gl::AttachShader(program, vertex); diff --git a/librashader-runtime-vk/src/luts.rs b/librashader-runtime-vk/src/luts.rs index f774923..780620a 100644 --- a/librashader-runtime-vk/src/luts.rs +++ b/librashader-runtime-vk/src/luts.rs @@ -49,7 +49,7 @@ impl LutTexture { &vulkan.memory_properties, mem_reqs.memory_type_bits, vk::MemoryPropertyFlags::DEVICE_LOCAL, - ); + )?; VulkanImageMemory::new( &vulkan.device, &vk::MemoryAllocateInfo::builder() diff --git a/librashader-runtime-vk/src/texture.rs b/librashader-runtime-vk/src/texture.rs index 6d4982a..c8c35dc 100644 --- a/librashader-runtime-vk/src/texture.rs +++ b/librashader-runtime-vk/src/texture.rs @@ -66,7 +66,7 @@ impl OwnedImage { &mem_props, mem_reqs.memory_type_bits, vk::MemoryPropertyFlags::DEVICE_LOCAL, - )) + )?) .build(); // todo: optimize by reusing existing memory. diff --git a/librashader-runtime-vk/src/vulkan_primitives.rs b/librashader-runtime-vk/src/vulkan_primitives.rs index 0ea74ca..bbe9f70 100644 --- a/librashader-runtime-vk/src/vulkan_primitives.rs +++ b/librashader-runtime-vk/src/vulkan_primitives.rs @@ -71,7 +71,7 @@ impl VulkanBuffer { mem_props, memory_reqs.memory_type_bits, vk::MemoryPropertyFlags::HOST_VISIBLE | vk::MemoryPropertyFlags::HOST_COHERENT, - )) + )?) .build(); let alloc = device.allocate_memory(&alloc_info, None)?;