Add condition for compilation without threads in gl.nim
.
This commit is contained in:
parent
6180767bf2
commit
7efd3bb160
|
@ -20,10 +20,12 @@ proc get_program_info_log*(program: GLuint): string =
|
||||||
glGetProgramInfoLog(program, logSize.GLsizei, nil, s.cstring)
|
glGetProgramInfoLog(program, logSize.GLsizei, nil, s.cstring)
|
||||||
return s
|
return s
|
||||||
|
|
||||||
let main_thread_id = getThreadID()
|
when compileOption("threads"):
|
||||||
|
let main_thread_id = getThreadID()
|
||||||
|
|
||||||
template handleError(x: untyped, t: string) =
|
template handleError(x: untyped, t: string) =
|
||||||
assert main_thread_id == getThreadID()
|
when compileOption("threads"):
|
||||||
|
assert main_thread_id == getThreadID()
|
||||||
try:
|
try:
|
||||||
x
|
x
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in a new issue