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

Fixes 0 stride handling #688

Merged
merged 1 commit into from
Mar 23, 2022

Conversation

abaire
Copy link
Contributor

@abaire abaire commented Jan 30, 2022

Special cases attributes with stride = 0 by using the first value in the buffer for all vertices, matching hardware.

Test case
Results

Fixes #686
Fixes #174

@abaire abaire marked this pull request as ready for review January 31, 2022 18:00
7oxicshadow added a commit to 7oxicshadow/xemu that referenced this pull request Feb 1, 2022
early merge xemu-project#688
initial test support for VMU
@abaire abaire force-pushed the fixes_0_stride_handling branch 2 times, most recently from 60340e2 to 60c5417 Compare February 12, 2022 01:26
@abaire abaire force-pushed the fixes_0_stride_handling branch from 60c5417 to f1399bc Compare March 14, 2022 22:27
pgraph_update_inline_value(attr, last_entry);
glDisableVertexAttribArray(i);
glVertexAttrib4fv(i, attr->inline_value);
continue;
Copy link
Member

Choose a reason for hiding this comment

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

As written, this continue is unnecessary. However, we could also move this last entry update block up and eliminate some GL calls in the process (i.e. we don't need to set attrib pointer and enable it just to then disable it)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call, updated.

@abaire abaire force-pushed the fixes_0_stride_handling branch from f1399bc to 4ce20dd Compare March 21, 2022 03:16
@mborgerson mborgerson force-pushed the fixes_0_stride_handling branch from 4ce20dd to 877d509 Compare March 23, 2022 00:03
@mborgerson mborgerson merged commit 6f507c8 into xemu-project:master Mar 23, 2022
@abaire abaire deleted the fixes_0_stride_handling branch March 23, 2022 02:27
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.

SSX Tricky: Stage select missing foreground graphics SSX Tricky - Totally messed up graphics
2 participants