浏览代码

Merge pull request #665 from PROP65/assert_delete

Remove unnecessary assert
Rob Loach 1 年之前
父节点
当前提交
c3282bf274
共有 2 个文件被更改,包括 0 次插入2 次删除
  1. 0 1
      nuklear.h
  2. 0 1
      src/nuklear_window.c

+ 0 - 1
nuklear.h

@@ -20789,7 +20789,6 @@ nk_window_set_bounds(struct nk_context *ctx,
     if (!ctx) return;
     win = nk_window_find(ctx, name);
     if (!win) return;
-    NK_ASSERT(ctx->current != win && "You cannot update a currently in procecss window");
     win->bounds = bounds;
 }
 NK_API void

+ 0 - 1
src/nuklear_window.c

@@ -567,7 +567,6 @@ nk_window_set_bounds(struct nk_context *ctx,
     if (!ctx) return;
     win = nk_window_find(ctx, name);
     if (!win) return;
-    NK_ASSERT(ctx->current != win && "You cannot update a currently in procecss window");
     win->bounds = bounds;
 }
 NK_API void