diff --git a/src/lib.rs b/src/lib.rs index 872918ad..d8eb83a6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2696,7 +2696,7 @@ pub unsafe extern "C" fn wgpuInstanceRequestAdapter( callback( native::WGPURequestAdapterStatus_Error, std::ptr::null_mut(), - "unsupported backend type: d3d11".as_ptr() as _, + c"unsupported backend type: d3d11".as_ptr() as _, userdata, ); return;