Jump to content

  • Log In with Google      Sign In   
  • Create Account


glScissorArray


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 BornToCode   Members   -  Reputation: 892

Like
0Likes
Like

Posted 30 August 2013 - 08:29 PM

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, 30 August 2013 - 08:31 PM.


Sponsor:

#2 LorenzoGatti   Crossbones+   -  Reputation: 2456

Like
0Likes
Like

Posted 02 September 2013 - 03:05 AM

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


Produci, consuma, crepa

#3 BornToCode   Members   -  Reputation: 892

Like
0Likes
Like

Posted 03 September 2013 - 10:42 PM

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, 03 September 2013 - 11:28 PM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS