my current renderer uses a number of frame+renderbuffers and rendertextures at the moment. I wanted to implenent the possibility to render to multiple independent windows and got multiple OpenGL 3.0 contexts running and at first it worked, without render buffers on the other windows.
But when the second windows' scene got more complex and I added renderbuffers and framebuffers the problems began.
GLint maxBuffers; gl::GetIntegerv(gl::GL_MAX_DRAW_BUFFERS, &maxBuffers);
returns 8, and the first window consumes 5-6. I tried starting my app.exe twice with only 1 window and both ran without any trouble (2 app.exe each 1 window), but when starting only 1 app.exe and having it spawn 2 windows with each a context, i get GL_INVALID_VALUE on gl::GenFramebuffers, which indicates to me that both contexts' buffer count add up.
How can i have my HGLRC's work indepentent like 2 separate apps, within one?
Thanks in advance