Define ck() based on cfg(debug_assertions).
This commit is contained in:
parent
893f735a2b
commit
5ce4e2e128
|
@ -918,7 +918,7 @@ impl GLVersion {
|
||||||
|
|
||||||
// Error checking
|
// Error checking
|
||||||
|
|
||||||
#[cfg(debug)]
|
#[cfg(debug_assertions)]
|
||||||
fn ck() {
|
fn ck() {
|
||||||
unsafe {
|
unsafe {
|
||||||
let err = gl::GetError();
|
let err = gl::GetError();
|
||||||
|
@ -928,7 +928,7 @@ fn ck() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(debug))]
|
#[cfg(not(debug_assertions))]
|
||||||
fn ck() {}
|
fn ck() {}
|
||||||
|
|
||||||
// Shader preprocessing
|
// Shader preprocessing
|
||||||
|
|
Loading…
Reference in New Issue