diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-04 21:24:40 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-04 21:24:40 +0400 |
commit | 419016928216707f95fa7b94d233b0bb8707ff3c (patch) | |
tree | c2aa61ef650533cd9579103b8b427e8c2eb06d60 /source/blender/windowmanager | |
parent | 0f565149864ac34d54c5a0e517a8db88cf67a6d6 (diff) |
code cleanup, also remove glError check in font drawing code since its now a debug option.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index a42986eba60..a6b3efd30bf 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -2182,11 +2182,12 @@ void wm_event_do_handlers(bContext *C) /* update key configuration after handling events */ WM_keyconfig_update(wm); - - if(G.debug) { + + if (G.debug) { GLenum error = glGetError(); - if (error) + if (error != GL_NO_ERROR) { printf("GL error: %s\n", gluErrorString(error)); + } } } |