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

Fix GeoIcons Shader Usage #328

Merged
merged 1 commit into from
Dec 26, 2024
Merged

Fix GeoIcons Shader Usage #328

merged 1 commit into from
Dec 26, 2024

Conversation

dpaulat
Copy link
Owner

@dpaulat dpaulat commented Dec 26, 2024

No description provided.

@dpaulat dpaulat linked an issue Dec 26, 2024 that may be closed by this pull request
@dpaulat dpaulat modified the milestone: v0.4.8 Dec 26, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

GL_FALSE,
kIntegersPerVertex_ * sizeof(GLint),
reinterpret_cast<void*>(3 * sizeof(float)));
gl.glVertexAttribIPointer(7,

Choose a reason for hiding this comment

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

warning: 7 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers]

   gl.glVertexAttribIPointer(7,
                             ^

1,
GL_INT,
kIntegersPerVertex_ * sizeof(GLint),
reinterpret_cast<void*>(3 * sizeof(GLint)));

Choose a reason for hiding this comment

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

warning: integer to pointer cast pessimizes optimization opportunities [performance-no-int-to-ptr]

                             reinterpret_cast<void*>(3 * sizeof(GLint)));
                             ^

@dpaulat dpaulat merged commit 6bf3ae8 into develop Dec 26, 2024
4 of 5 checks passed
@dpaulat dpaulat deleted the hotfix/geo-icon-amd-display branch December 26, 2024 19:26
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.

Warning Polygons Missing with AMD GPU
1 participant