Browse Source

Merge pull request #665 from PROP65/assert_delete

Remove unnecessary assert
Rob Loach 1 year ago
parent
commit
c3282bf274
2 changed files with 0 additions and 2 deletions
  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;
     if (!ctx) return;
     win = nk_window_find(ctx, name);
     win = nk_window_find(ctx, name);
     if (!win) return;
     if (!win) return;
-    NK_ASSERT(ctx->current != win && "You cannot update a currently in procecss window");
     win->bounds = bounds;
     win->bounds = bounds;
 }
 }
 NK_API void
 NK_API void

+ 0 - 1
src/nuklear_window.c

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