glScissorArray

Started by
1 comment, last by BornToCode 10 years, 7 months ago

Does anyone know why glScissorArray/glViewportArray only works with index 0. I made sure to check that i have support for more than one viewport and it tells me there is 16 viewports. But whenever i used glScissorArray with glViewportArray only the first index is getting set. The way i am testing this is that i set up different viewports/scissors then call clear. But it is only showing pixels only on the sub region defined in the first scissor. I am not seeing any pixels in the other regions. Another test i did is set up an scissor/viewport for index 1 and not 0. When i call clear then, it clears the whole screen ignoring the scissor.

Advertisement

Please post the traditional complete code example; the order of OpenGL calls and their parameters are important, as are the missing calls.

Omae Wa Mou Shindeiru

Forget it. I solved the problem. One of the difference between DX11 and GL that i notice is that if you set an Scissor in DX it does not get affected by clearing the buffer. But in GL when you clear any buffer if the scissor is on. It will not clear anything outside the box.

This topic is closed to new replies.

Advertisement