# Closing a second window

**URL:** <https://discourse.processing.org/t/closing-a-second-window/381>\
**Category:** Coding Questions\
**Created:** [May 25, 2018, 7:55pm UTC](https://discourse.processing.org/t/closing-a-second-window/381 "2018-05-25T19:55:02Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![lmccandless](https://avatars.discourse-cdn.com/v4/letter/l/f0a364/32.png) [@lmccandless](https://discourse.processing.org/u/lmccandless)\
**Post date:** [May 25, 2018, 11:19pm UTC](https://discourse.processing.org/t/closing-a-second-window/381/14 "2018-05-25T23:19:03Z")

</div>

> **[lmccandless/repixel3](https://github.com/lmccandless/repixel3)**
>
> Tool for recoloring pixel art made in Processing 3 - lmccandless/repixel3

Here is my project, kind of in an early development stage right now. The idea is you left click to select a color from the spritesheet(or group of squares on the left), and rightclick to replace that color with whatever color is under the mouse pointer.

I’m trying to apply my PShader called highlight to both frames.

If you run the program, toggle the box labeled highlight, and left click on the spritesheet or the colored squares on the left, you’ll see my shader highlight the pixels and it all works fine.

Then if you click the histogram button, it opens the new window, and things get screwy. White and black random rectangles and sometimes GL errors. The filter is applied to the new window on line 53 of histogram.pde. If highlight is disabled, it works fine.

Usually but not always the error is GLException: array vertex\_buffer\_object must be bound to call this method

---

_[View the full topic](https://discourse.processing.org/t/closing-a-second-window/381)._
