glapi: Move to src/mapi/.
[mesa.git] / progs / glsl / samplers.c
index 113e5bbeff14d5471a78b5bcaaf363e32ac93528..8f26a5e329dbc09b2060e96b694167116c6e8c66 100644 (file)
@@ -41,7 +41,6 @@
 #include <string.h>
 #include <GL/glew.h>
 #include "GL/glut.h"
-#include "readtex.h"
 #include "shaderutil.h"
 
 
@@ -211,10 +210,18 @@ InitTextures(void)
       for (y = 0; y < stripeSize; y++) {
          for (x = 0; x < size; x++) {
             GLint k = 4 * ((ypos + y) * size + x);
-            texImage[k + 0] = intensity;
-            texImage[k + 1] = intensity;
-            texImage[k + 2] = 0;
-            texImage[k + 3] = 255;
+            if (x < size / 2) {
+               texImage[k + 0] = intensity;
+               texImage[k + 1] = intensity;
+               texImage[k + 2] = 0;
+               texImage[k + 3] = 255;
+            }
+            else {
+               texImage[k + 0] = 255 - intensity;
+               texImage[k + 1] = 0;
+               texImage[k + 2] = 0;
+               texImage[k + 3] = 255;
+            }
          }
       }