Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
dbe05824
Commit
dbe05824
authored
Oct 09, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Oct 10, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Print the GL renderer and version when complaining about software / indirect rendering.
parent
1226ffe0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
opengl.c
dlls/winex11.drv/opengl.c
+9
-4
No files found.
dlls/winex11.drv/opengl.c
View file @
dbe05824
...
@@ -299,6 +299,7 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
...
@@ -299,6 +299,7 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
{
{
int
screen
=
DefaultScreen
(
gdi_display
);
int
screen
=
DefaultScreen
(
gdi_display
);
Window
win
=
0
,
root
=
0
;
Window
win
=
0
,
root
=
0
;
const
char
*
gl_renderer
;
const
char
*
str
;
const
char
*
str
;
XVisualInfo
*
vis
;
XVisualInfo
*
vis
;
GLXContext
ctx
=
NULL
;
GLXContext
ctx
=
NULL
;
...
@@ -349,6 +350,7 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
...
@@ -349,6 +350,7 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
ERR_
(
winediag
)(
"Unable to activate OpenGL context, most likely your OpenGL drivers haven't been installed correctly
\n
"
);
ERR_
(
winediag
)(
"Unable to activate OpenGL context, most likely your OpenGL drivers haven't been installed correctly
\n
"
);
goto
done
;
goto
done
;
}
}
gl_renderer
=
(
const
char
*
)
pglGetString
(
GL_RENDERER
);
WineGLInfo
.
glVersion
=
(
const
char
*
)
pglGetString
(
GL_VERSION
);
WineGLInfo
.
glVersion
=
(
const
char
*
)
pglGetString
(
GL_VERSION
);
str
=
(
const
char
*
)
pglGetString
(
GL_EXTENSIONS
);
str
=
(
const
char
*
)
pglGetString
(
GL_EXTENSIONS
);
WineGLInfo
.
glExtensions
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
str
)
+
1
);
WineGLInfo
.
glExtensions
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
str
)
+
1
);
...
@@ -369,7 +371,7 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
...
@@ -369,7 +371,7 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
WineGLInfo
.
glxDirect
=
pglXIsDirect
(
gdi_display
,
ctx
);
WineGLInfo
.
glxDirect
=
pglXIsDirect
(
gdi_display
,
ctx
);
TRACE
(
"GL version : %s.
\n
"
,
WineGLInfo
.
glVersion
);
TRACE
(
"GL version : %s.
\n
"
,
WineGLInfo
.
glVersion
);
TRACE
(
"GL renderer : %s.
\n
"
,
pglGetString
(
GL_RENDERER
)
);
TRACE
(
"GL renderer : %s.
\n
"
,
gl_renderer
);
TRACE
(
"GLX version : %d.%d.
\n
"
,
WineGLInfo
.
glxVersion
[
0
],
WineGLInfo
.
glxVersion
[
1
]);
TRACE
(
"GLX version : %d.%d.
\n
"
,
WineGLInfo
.
glxVersion
[
0
],
WineGLInfo
.
glxVersion
[
1
]);
TRACE
(
"Server GLX version : %s.
\n
"
,
WineGLInfo
.
glxServerVersion
);
TRACE
(
"Server GLX version : %s.
\n
"
,
WineGLInfo
.
glxServerVersion
);
TRACE
(
"Server GLX vendor: : %s.
\n
"
,
WineGLInfo
.
glxServerVendor
);
TRACE
(
"Server GLX vendor: : %s.
\n
"
,
WineGLInfo
.
glxServerVendor
);
...
@@ -387,7 +389,9 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
...
@@ -387,7 +389,9 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
* Detect a local X11 server by checking whether the X11 socket is a Unix socket.
* Detect a local X11 server by checking whether the X11 socket is a Unix socket.
*/
*/
if
(
!
getsockname
(
fd
,
(
struct
sockaddr
*
)
&
uaddr
,
&
uaddrlen
)
&&
uaddr
.
sun_family
==
AF_UNIX
)
if
(
!
getsockname
(
fd
,
(
struct
sockaddr
*
)
&
uaddr
,
&
uaddrlen
)
&&
uaddr
.
sun_family
==
AF_UNIX
)
ERR_
(
winediag
)(
"Direct rendering is disabled, most likely your OpenGL drivers haven't been installed correctly
\n
"
);
ERR_
(
winediag
)(
"Direct rendering is disabled, most likely your OpenGL drivers "
"haven't been installed correctly (using GL renderer %s, version %s).
\n
"
,
debugstr_a
(
gl_renderer
),
debugstr_a
(
WineGLInfo
.
glVersion
));
}
}
else
else
{
{
...
@@ -400,9 +404,10 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
...
@@ -400,9 +404,10 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
* to load a DRI module 'Software Rasterizer' is returned. When Mesa is compiled as a OpenGL reference driver
* to load a DRI module 'Software Rasterizer' is returned. When Mesa is compiled as a OpenGL reference driver
* it shows 'Mesa X11'.
* it shows 'Mesa X11'.
*/
*/
const
char
*
gl_renderer
=
(
const
char
*
)
pglGetString
(
GL_RENDERER
);
if
(
!
strcmp
(
gl_renderer
,
"Software Rasterizer"
)
||
!
strcmp
(
gl_renderer
,
"Mesa X11"
))
if
(
!
strcmp
(
gl_renderer
,
"Software Rasterizer"
)
||
!
strcmp
(
gl_renderer
,
"Mesa X11"
))
ERR_
(
winediag
)(
"The Mesa OpenGL driver is using software rendering, most likely your OpenGL drivers haven't been installed correctly
\n
"
);
ERR_
(
winediag
)(
"The Mesa OpenGL driver is using software rendering, most likely your OpenGL "
"drivers haven't been installed correctly (using GL renderer %s, version %s).
\n
"
,
debugstr_a
(
gl_renderer
),
debugstr_a
(
WineGLInfo
.
glVersion
));
}
}
ret
=
TRUE
;
ret
=
TRUE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment