Skip to content

Fix SendMatrices not uploading any data to shader uniform#119

Open
smeas wants to merge 1 commit intoendlesstravel:masterfrom
smeas:fix-sendmatrices
Open

Fix SendMatrices not uploading any data to shader uniform#119
smeas wants to merge 1 commit intoendlesstravel:masterfrom
smeas:fix-sendmatrices

Conversation

@smeas
Copy link
Copy Markdown

@smeas smeas commented Mar 23, 2024

SendMatrices did not copy any data to the shader uniform info structure, leading to it always setting the shader uniforms to zero.

Changes

  • Fixed sendMatrices to copy the matrices data properly before updating the uniform.
  • Fixed typo in matrix size guard
  • Added safety check for zero sized array input

- Fixed sendMatrices to copy the matrices data properly before updating the uniform
- Fixed typo in matrix size guard
- Added safety check for zero sized array input
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.

1 participant