Define ck() based on cfg(debug_assertions).

This commit is contained in:
Atul Varma 2019-06-05 07:45:52 -04:00
parent 893f735a2b
commit 5ce4e2e128
1 changed files with 2 additions and 2 deletions

View File

@ -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