Bug#396415: mesa: black border using glDrawPixels with GL_LUMINANCE

Cihan Altinay bobbyg at gmx.net
Tue Oct 31 17:46:14 CET 2006


Package: mesa
Severity: normal


The following combination leads to a black border on the right hand side 
of the viewport which is wrong:
- glPixelZoom(1.0f, -1.0f)
- glPixelStorei(GL_UNPACK_ALIGNMENT, 1)
- glDrawPixels with format GL_LUMINANCE

Any other combination or slightly different pixel zoom values work as 
expected. A sample program demonstrating the behaviour is attached.
Compile as follows: gcc -lglut mesa_bug.c -o mesa_bug

Note that the bug happens in both, accelerated (DRI) and non-accelerated 
modes and with different graphics drivers (Radeon 7500 & Matrox G550).

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mesa_bug.c
Type: text/x-c++
Size: 2108 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-mesa-devel/attachments/20061031/7cf0d00e/mesa_bug.bin


More information about the Pkg-mesa-devel mailing list