Attempt to mitigate issue T40981

Clipping border causes a software fallback on ATIs. We have disabled it
in that case but from minor digging on the net seems like Intels support
this, so enable.
This commit is contained in:
Antonis Ryakiotakis 2014-07-09 21:24:37 +03:00
parent f5caab2cf7
commit a498d88918
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ void main()
gl_Position = gl_ProjectionMatrix * co;
#ifdef GPU_NVIDIA
#ifndef GPU_ATI
// Setting gl_ClipVertex is necessary to get glClipPlane working on NVIDIA
// graphic cards, while on ATI it can cause a software fallback.
gl_ClipVertex = gl_ModelViewMatrix * gl_Vertex;

View File

@ -10,7 +10,7 @@ void main()
varnormal = normalize(gl_NormalMatrix * gl_Normal);
gl_Position = gl_ProjectionMatrix * co;
#ifdef GPU_NVIDIA
#ifndef GPU_ATI
// Setting gl_ClipVertex is necessary to get glClipPlane working on NVIDIA
// graphic cards, while on ATI it can cause a software fallback.
gl_ClipVertex = gl_ModelViewMatrix * gl_Vertex;