mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
updated FX wrapper
This commit is contained in:
parent
eba6bacc88
commit
66304ec6d1
1 changed files with 5 additions and 0 deletions
|
|
@ -1095,6 +1095,7 @@ DMesaVisual DMesaCreateVisual (GLint width,
|
|||
|
||||
#else /* FX */
|
||||
|
||||
char *env;
|
||||
int i = 0, fx_attrib[32];
|
||||
|
||||
if (!rgbFlag) {
|
||||
|
|
@ -1110,6 +1111,10 @@ DMesaVisual DMesaCreateVisual (GLint width,
|
|||
fx_attrib[i++] = colDepth;
|
||||
fx_attrib[i] = FXMESA_NONE;
|
||||
|
||||
if ((env = getenv("MESA_FX_INFO")) && (env[0] == 'r')) {
|
||||
freopen("MESA.LOG", "w", stderr);
|
||||
}
|
||||
|
||||
return (DMesaVisual)fxMesaCreateBestContext(-1, width, height, fx_attrib);
|
||||
#endif /* FX */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue