Sign in to follow this  
BornToCode

glScissorArray

Recommended Posts

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.

Edited by BornToCode

Share this post


Link to post
Share on other sites

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.

Edited by BornToCode

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this