Demos (master): bezier: make it also work with nvidia's compiler

Zack Rusin zack at kemper.freedesktop.org
Sun Jul 11 04:43:01 UTC 2010


Module: Demos
Branch: master
Commit: 96d23eeff3916b669b883378ccea3a0c74b000eb
URL:    http://cgit.freedesktop.org/mesa/demos/commit/?id=96d23eeff3916b669b883378ccea3a0c74b000eb

Author: Zack Rusin <zack at kde.org>
Date:   Sun Jul 11 00:46:02 2010 -0400

bezier: make it also work with nvidia's compiler

---

 src/glsl/bezier.geom |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/glsl/bezier.geom b/src/glsl/bezier.geom
index 0a11af5..3041e50 100644
--- a/src/glsl/bezier.geom
+++ b/src/glsl/bezier.geom
@@ -8,7 +8,7 @@ void main()
    /* num is the number of subdivisions
     * can be anything between 1 and infinity
     */
-   const int num = NumSubdivisions;
+   int num = NumSubdivisions;
 
    float dt = 1. / float(num);
    float t = 0.;




More information about the mesa-commit mailing list