Browse Source

mesa: disable visual warning unless LIBGL_DEBUG is defined

tags/mesa_20090313
Brian Paul 17 years ago
parent
commit
f82d5cf769
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      src/glx/x11/glxext.c

+ 4
- 2
src/glx/x11/glxext.c View File

if ( do_delete && (m->visualID != 0) ) { if ( do_delete && (m->visualID != 0) ) {
do_delete = GL_FALSE; do_delete = GL_FALSE;


fprintf(stderr, "libGL warning: 3D driver claims to not support "
"visual 0x%02x\n", m->visualID);
if (getenv("LIBGL_DEBUG")) {
fprintf(stderr, "libGL warning: 3D driver claims to not support "
"visual 0x%02x\n", m->visualID);
}
} }


if ( do_delete ) { if ( do_delete ) {

Loading…
Cancel
Save