Browse Source

fix subwindow.

SakiKawasaki 4 years ago
parent
commit
538ffda466
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/nodesnim/nodescontrol/subwindow.nim

+ 1 - 1
src/nodesnim/nodescontrol/subwindow.nim

@@ -115,7 +115,7 @@ method draw*(self: SubWindowRef, w, h: GLfloat) =
   self.title.calcGlobalPosition()
   self.title.draw(w, h)
 
-  if self.icon.texture > 0:
+  if self.icon.texture > 0'u32:
     glEnable(GL_TEXTURE_2D)
     glBindTexture(GL_TEXTURE_2D, self.icon.texture)
     glBegin(GL_QUADS)