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

RPLE compat #39

Merged
merged 1 commit into from
Dec 2, 2023
Merged

RPLE compat #39

merged 1 commit into from
Dec 2, 2023

Conversation

FalsePattern
Copy link
Contributor

Tested with Lumina 1.0.0-rc4 and RPLE 1.0.0-rc6, the visuals are identical with and without Neodymium.

@@ -108,10 +109,12 @@ private void addTessellatorData(Tessellator t) {
FLAGS.hasColor = t.hasColor;

int verticesPerPrimitive = t.drawMode == GL11.GL_QUADS ? 4 : 3;

int tessellatorVertexSize = Compat.RPLE() ? 12 : 8;
Copy link
Owner

Choose a reason for hiding this comment

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

I would've made this a global (e.g. Compat.tessellatorVertexSize()) to avoid cluttering up method signatures with something that's going to be constant anyway. But this is fine too.

@makamys makamys merged commit dd40c5c into makamys:master Dec 2, 2023
1 check passed
@makamys
Copy link
Owner

makamys commented Dec 2, 2023

Thanks!

@FalsePattern FalsePattern deleted the rple-compat branch January 7, 2024 22:01
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