]> git.tdb.fi Git - libs/gl.git/blobdiff - source/ambientocclusion.cpp
Require texture data to be uploaded in a format matching the storage
[libs/gl.git] / source / ambientocclusion.cpp
index b1dccc0e4c632ea8dd55ad5390c7fea5135413d4..1cfdff09e8572b83f83442d834008b1724191610 100644 (file)
@@ -34,7 +34,7 @@ AmbientOcclusion::AmbientOcclusion(unsigned w, unsigned h, float):
                data[i*4+2] = 255-s;
                data[i*4+3] = ((i+i/4)%2)*255;
        }
-       rotate_lookup.image(0, RGBA, UNSIGNED_BYTE, data);
+       rotate_lookup.image(0, data);
 
        texturing.attach(3, rotate_lookup);