xlgames-inc / XLE

XLE -- the "hackable" 3D game rendering engine
MIT License
335 stars 73 forks source link

Shader compile crashes on Intel integrated graphics #7

Closed djewsbury closed 8 years ago

djewsbury commented 8 years ago

When using Intel integrated graphics, some terrain shaders will cause a crash within the Intel shader dll. This is probably a bug in the Intel driver related to shader based tessellation.

If you have a laptop with an Intel chip and an nvidia discreet graphics chip (eg, 960M, etc..), the nvidia drivers will usually select the integrated graphics for the LevelEditor, MaterialTool, etc. To get around this, you can manually select "High-performance NVIDIA processor" for LevelEditor.exe (etc) in the nvidia control panel.

djewsbury commented 8 years ago

This should now be fixed in the latest build. The problem seemed to be related to using "class" based dynamic linking in a loop in a shader. I've hard coded a specific implementation to try to get around this issue.