Rename var.
This commit is contained in:
parent
f480f166fb
commit
c429abbbd7
1 changed files with 3 additions and 3 deletions
|
|
@ -306,13 +306,13 @@ const
|
||||||
## and ``enableAutoGlErrorCheck(bool)`` will have no effect when
|
## and ``enableAutoGlErrorCheck(bool)`` will have no effect when
|
||||||
## ``noAutoGlErrorCheck`` is defined.
|
## ``noAutoGlErrorCheck`` is defined.
|
||||||
|
|
||||||
var glAutoErrorCheck = true
|
var autoGlErrorCheck = true
|
||||||
|
|
||||||
proc enableAutoGlErrorCheck*(yes: bool) =
|
proc enableAutoGlErrorCheck*(yes: bool) =
|
||||||
## This determines (at run time) whether an exception should be raised if an
|
## This determines (at run time) whether an exception should be raised if an
|
||||||
## OpenGL call generates an error. This has no effect when
|
## OpenGL call generates an error. This has no effect when
|
||||||
## ``noAutoGlErrorCheck`` is defined.
|
## ``noAutoGlErrorCheck`` is defined.
|
||||||
glAutoErrorCheck = yes
|
autoGlErrorCheck = yes
|
||||||
|
|
||||||
macro wrapErrorChecking(f: stmt): stmt =
|
macro wrapErrorChecking(f: stmt): stmt =
|
||||||
f.expectKind nnkStmtList
|
f.expectKind nnkStmtList
|
||||||
|
|
@ -343,7 +343,7 @@ macro wrapErrorChecking(f: stmt): stmt =
|
||||||
|
|
||||||
template errCheck: stmt =
|
template errCheck: stmt =
|
||||||
when not (NoAutoGlErrorCheck):
|
when not (NoAutoGlErrorCheck):
|
||||||
if glAutoErrorCheck:
|
if autoGlErrorCheck:
|
||||||
checkGlError()
|
checkGlError()
|
||||||
|
|
||||||
body.add getAst(errCheck())
|
body.add getAst(errCheck())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue