fix nvidia diagnostics line offset, once and for all (hopefully)

This commit is contained in:
Noah Santschi-Cooney 2022-04-24 21:53:21 +01:00
parent 3c58af95fa
commit 27d1d7b34e
No known key found for this signature in database
GPG key ID: 3B22282472C8AE48

View file

@ -40,7 +40,7 @@ impl<'a, T: opengl::ShaderValidator + ?Sized> DiagnosticsParser<'a, T> {
fn get_line_offset(&self) -> u32 {
*self.line_offset.get_or_init(|| match self.vendor_querier.vendor().as_str() {
"ATI Technologies" => 0,
_ => 2,
_ => 1,
})
}