Eevee: Fix missing meshes on Win + Intel HD 530/540
This is only a workaround. The real issue should be adressed by the driver team upstream.
This commit is contained in:
parent
c6037b39a1
commit
0a26c122ed
Notes:
blender-bot
2023-02-14 06:05:22 +01:00
Referenced by issue #56668, Intel HD530 + Windows 10 Bugs
|
@ -40,6 +40,13 @@ flat out int hairStrandID;
|
|||
|
||||
void main()
|
||||
{
|
||||
#ifdef GPU_INTEL
|
||||
/* Due to some shader compiler bug, we somewhat
|
||||
* need to access gl_VertexID to make it work. even
|
||||
* if it's actually dead code. */
|
||||
gl_Position.x = float(gl_VertexID);
|
||||
#endif
|
||||
|
||||
#ifdef HAIR_SHADER
|
||||
hairStrandID = hair_get_strand_id();
|
||||
vec3 pos, binor;
|
||||
|
|
Loading…
Reference in New Issue