TextureIO.write(tex, "output.png") causes a GLException when using a GL3 context
Please post the full stack trace.
3edf24ba4fdca529b25e780c2b0996ff4237d950 _gl.getGL2() -> _gl.getGL2GL3()
Next time, please add the stack trace - thank you!