Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Log GL_MAX_VERTEX_ATTRIBS value before making programs - #8177

Closed
anandthakker wants to merge 3 commits into
masterfrom
log-glmaxvertexattribs
Closed

anandthakker wants to merge 3 commits into
masterfrom
log-glmaxvertexattribs

Conversation

@anandthakker

Copy link
Copy Markdown
Contributor

Temporary diagnostic logging for #8150

@mention-bot

Copy link
Copy Markdown

@anandthakker, thanks for your PR! By analyzing this pull request, we identified @jfirebaugh, @ansis and @mollymerp to be potential reviewers.

@anandthakker

Copy link
Copy Markdown
Contributor Author

@zugaldia still working on getting my Android build working, but I confirmed that it logs GL_MAX_VERTEX_ATTRIBS = 16 to the console when I run the glfw test app.

Comment thread src/mbgl/gl/context.cpp Outdated

void Context::logGlMaxVertexAttribsValue() {
int glMaxVertexAttribs;
glGetIntegerv(GL_MAX_VERTEX_ATTRIBS, &glMaxVertexAttribs);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is it possible to wrap this call under MBGL_CHECK_ERROR macro. Its helpful to catch GL bugs. Its stripped out in release builds.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

👍 thanks @mb12

@zugaldia

Copy link
Copy Markdown
Member

Just confirming that I can see the message in the Android Studio logs:

image

@jfirebaugh

Copy link
Copy Markdown
Contributor

I think we're good here; we got the information we need, which is that some implementations have a max of 8.

@jfirebaugh jfirebaugh closed this Mar 9, 2017
@jfirebaugh
jfirebaugh deleted the log-glmaxvertexattribs branch March 9, 2017 19:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants