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

Improve oslUnswizzleTexture and oslUnswizzleImage functions #58

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

dogo
Copy link
Owner

@dogo dogo commented Sep 2, 2024

Description

This PR improves the oslUnswizzleTexture and oslUnswizzleImage functions by enhancing code clarity, memory management, and platform-specific handling.

Key Changes:

  • Improved variable names for better readability.
  • Added error handling for memory allocation in oslUnswizzleImage.
  • Clarified platform-specific code for non-PSP environments.
  • Preserved optimized loop structure for PSP performance.

These changes enhance the maintainability and robustness of the code without altering its existing functionality.

- Enhanced variable naming for better code clarity and readability.
- Added error handling for memory allocation in oslUnswizzleImage.
- Used malloc to allocate memory safely for the temporary buffer.
- Refined platform-specific code with clearer intent for non-PSP platforms.
- Maintained optimized loop structure for texture unswizzling on PSP.
@dogo dogo merged commit a2d9d3c into master Sep 2, 2024
6 checks passed
@dogo dogo deleted the refactor/oslUnswizzleImage branch September 2, 2024 18:17
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