mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 08:20:25 +01:00
remove 31-bit Z buffer work-around
This commit is contained in:
parent
8fadf8f900
commit
9e4e3adcf8
1 changed files with 2 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Mesa 3-D graphics library
|
||||
* Version: 6.4
|
||||
* Version: 6.5
|
||||
*
|
||||
* Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
|
||||
*
|
||||
|
|
@ -1209,7 +1209,7 @@ choose_visual( Display *dpy, int screen, const int *list, GLboolean fbConfig )
|
|||
* return 16 to maintain performance with earlier versions of Mesa.
|
||||
*/
|
||||
if (depth_size > 24)
|
||||
depth_size = 31; /* 32 causes int overflow problems */
|
||||
depth_size = 32;
|
||||
else if (depth_size > 16)
|
||||
depth_size = 24;
|
||||
else if (depth_size > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue