it’s my first post on the forum, so hello everyone!
I decided to write as I couldn’t find any answer by searching the forum nor by myself…
The problem is with the GL_MAX_TEXTURE_SIZE.
I have checked that my built-in graphics card supports textures up to 512x512 only.
If I tun the juce opengl demo and make any dimension of the window greater than 512 I get black background instead of rendered graphics (if I make it lower, everything is fine again). I debug mode thanks to JUCE_CHECK_OPENGL_ERROR I can see that the problem is connected with the glTexImage2D function run from the OpenGLFrameBuffer constructor (in the juce_OpenGLFrameBuffer.cpp file) - it gives GL_INVALID_VALUE (and it’s because of the window size). The problem occurs even if create completely empty opengl window…
I didn’t have any problems with OpenGL in other OpenGL projects (created using glut) or in games, even with window sizes greater than 512x512, so I assume it’s the juce-specific problem.