From ab9dba7f74536cb9319b58fe3d0a2eb0f3e85974 Mon Sep 17 00:00:00 2001 From: EXetoC Date: Fri, 9 May 2014 17:45:17 +0200 Subject: [PATCH] 'g' prefix for global. --- src/opengl.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/opengl.nim b/src/opengl.nim index 9866b39..00f7c1e 100644 --- a/src/opengl.nim +++ b/src/opengl.nim @@ -306,13 +306,13 @@ const ## and ``enableAutoGlErrorCheck(bool)`` will have no effect when ## ``noAutoGlErrorCheck`` is defined. -var autoGlErrorCheck = true +var gAutoGlErrorCheck = true proc enableAutoGlErrorCheck*(yes: bool) = ## This determines (at run time) whether an exception should be raised if an ## OpenGL call generates an error. This has no effect when ## ``noAutoGlErrorCheck`` is defined. - autoGlErrorCheck = yes + gAutoGlErrorCheck = yes macro wrapErrorChecking(f: stmt): stmt = f.expectKind nnkStmtList @@ -343,7 +343,7 @@ macro wrapErrorChecking(f: stmt): stmt = template errCheck: stmt = when not (NoAutoGlErrorCheck): - if autoGlErrorCheck: + if gAutoGlErrorCheck: checkGlError() body.add getAst(errCheck())