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