|
From: Lasse Kärkkäi. <tr...@us...> - 2011-06-27 21:28:23
|
Author: Lasse Karkkainen <tro...@tr...>
Date: Tue Jun 28 00:26:31 2011 +0300
Shader fixes for Radeon on Windows (Performous wouldn't start).
---
data/shaders/stereo3d.geom | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/data/shaders/stereo3d.geom b/data/shaders/stereo3d.geom
index 0c316cb..c94adb1 100644
--- a/data/shaders/stereo3d.geom
+++ b/data/shaders/stereo3d.geom
@@ -26,12 +26,12 @@ void passthru() {
}
// Process all the vertices, applying code to them before emitting (do-while to convince Nvidia of the code getting executed)
-#define PROCESS(code) i = 0; do { passthru(); code; EmitVertex(); } while (++i < gl_in.length); EndPrimitive();
+#define PROCESS(code) i = 0; do { passthru(); code; EmitVertex(); } while (++i < 3); EndPrimitive();
void main() {
bogus = 0.0;
if (sepFactor == 0.0) {
- gl_ViewportIndex = 0; PROCESS(); // No stereo
+ gl_ViewportIndex = 0; PROCESS(;); // No stereo
} else {
gl_ViewportIndex = 1; PROCESS(gl_Position.x -= sepFactor * (gl_Position.z - z0)); // Left eye
gl_ViewportIndex = 2; PROCESS(gl_Position.x += sepFactor * (gl_Position.z - z0)); // Right eye
|