X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fglblur.c;h=f34776b39e97ccaaee061547c176e78a2d96fb73;hb=2c902d6065f9856adf31e8540a94f1e42e68e905;hp=2ed914f10760ce99d09b04f181f93a8e4f6e3792;hpb=c28aecf9fc41e3a03494bacf7279745425e2fa18;p=xscreensaver diff --git a/hacks/glx/glblur.c b/hacks/glx/glblur.c index 2ed914f1..f34776b3 100644 --- a/hacks/glx/glblur.c +++ b/hacks/glx/glblur.c @@ -258,7 +258,10 @@ init_texture (ModeInfo *mi) glGenTextures (1, &bp->texture); glBindTexture (GL_TEXTURE_2D, bp->texture); glTexImage2D (GL_TEXTURE_2D, 0, 4, 128, 128, 0, - GL_RGBA, GL_UNSIGNED_BYTE, bp->tex_data); + GL_RGBA, + /* GL_UNSIGNED_BYTE, */ + GL_UNSIGNED_INT_8_8_8_8_REV, + bp->tex_data); glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); } @@ -327,7 +330,7 @@ overlay_blur_texture (ModeInfo *mi) { glColor4f (1, 1, 1, alpha); glTexCoord2f (0+spost, 1-spost); glVertex2f (0, 0); - glTexCoord2f (0+spost, 0+spost); glVertex2f (0, w); + glTexCoord2f (0+spost, 0+spost); glVertex2f (0, h); glTexCoord2f (1-spost, 0+spost); glVertex2f (w, h); glTexCoord2f (1-spost, 1-spost); glVertex2f (w, 0); spost += inc;