Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle GL_MAX_VIEWS_OVR in glGetInteger #1583

Merged
merged 1 commit into from
Mar 2, 2018
Merged

Conversation

pmuetschard
Copy link
Member

No description provided.

@@ -1006,6 +1006,10 @@ sub void GetStateVariable!T(GLenum name, bool isIndexed, GLuint index, T* v) {
case GL_MAX_VERTEX_UNIFORM_VECTORS: {
v[0] = as!T(ctx.Constants.MaxVertexUniformVectors)
}
@if(Extension.GL_OVR_multiview)
case GL_MAX_VIEWS_OVR: {
write(v[0:1])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we don't have a constant for this that can be assigned out, please add a TODO to add one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added the constant. PTAL.

@@ -175,6 +175,7 @@ func DefaultConstants30() Constants {
MaxTransformFeedbackSeparateAttribs: 4,
MaxTransformFeedbackSeparateComponents: 4,
MaxTextureMaxAnisotropyExt: 2.0,
MaxViewsExt: 2,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should default to 1?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the minimum is 2.

@pmuetschard pmuetschard merged commit b45397b into google:master Mar 2, 2018
@pmuetschard pmuetschard deleted the ovr branch March 2, 2018 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants