Posting this just in case anyone else needs to find it. If you get the following error with relation to render targets then you need to delete the render target before you create it again. In my case, I was creating it again without deleting it first as the window was resized.
ERROR:GRAPHICS: gl error 1285: out of memory
Assertion failed: 0, file ..\src\opengl\graphics_opengl.cpp, line 1527