Kajetan Johannes Hammerle 4 년 전
부모
커밋
35bbce6cd6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      wrapper/GL.cpp

+ 1 - 1
wrapper/GL.cpp

@@ -106,7 +106,7 @@ GL::TextureFormat GL::TextureFormat::unknown() {
 
 bool GL::printError(const char* message) {
     GLenum error = glGetError();
-    if(error == GL_NO_ERROR) {
+    if(error != GL_NO_ERROR) {
         LOG_ERROR(StringBuffer<100>(message).append(": ").append(
             gluErrorString(error)));
         return true;