mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
st/xorg: Set enforce version to 1 if not defined
This commit is contained in:
parent
ae97520e37
commit
3e1241d4f8
1 changed files with 1 additions and 6 deletions
|
|
@ -43,9 +43,8 @@
|
|||
#include "util/u_rect.h"
|
||||
|
||||
/* Make all the #if cases in the code esier to read */
|
||||
/* XXX can it be set to 1? */
|
||||
#ifndef DRI2INFOREC_VERSION
|
||||
#define DRI2INFOREC_VERSION 0
|
||||
#define DRI2INFOREC_VERSION 1
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
|
|
@ -370,11 +369,7 @@ xorg_dri2_init(ScreenPtr pScreen)
|
|||
modesettingPtr ms = modesettingPTR(pScrn);
|
||||
DRI2InfoRec dri2info;
|
||||
|
||||
#if DRI2INFOREC_VERSION >= 2
|
||||
dri2info.version = DRI2INFOREC_VERSION;
|
||||
#else
|
||||
dri2info.version = 1;
|
||||
#endif
|
||||
dri2info.fd = ms->fd;
|
||||
|
||||
dri2info.driverName = pScrn->driverName;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue