Skip to content

fix(airconv): check index_buffer_idx against ~0u instead of non-zero - #259

Closed
adityajs12321 wants to merge 1 commit into
3Shain:mainfrom
adityajs12321:main
Closed

adityajs12321 wants to merge 1 commit into
3Shain:mainfrom
adityajs12321:main

Conversation

@adityajs12321

Copy link
Copy Markdown

Problem
Non-indexed draws that go through a geometry shader went inside the index buffer branch (even though the index buffer is empty), and the compiled shader is a nullptr.

Fix
Compare index_buffer_idx with ~0u instead.

Additional Fixes
Pass geometry shader settings and empty input layout to convert_dxbc_vertex_for_geometry_shader, to debug geometry shader issues better.

Testing

  • HBAO+ now works as expected in Witcher 3

@3Shain

3Shain commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Fixed in 0df8610

@3Shain 3Shain closed this Nov 10, 2026
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