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
a191184a
Commit
a191184a
authored
Dec 03, 2009
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Dec 04, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wgl: Add a direct rendering check to new winediag channel.
parent
3dd6c9a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
opengl.c
dlls/winex11.drv/opengl.c
+21
-0
No files found.
dlls/winex11.drv/opengl.c
View file @
a191184a
...
...
@@ -29,12 +29,20 @@
#include <stdlib.h>
#include <string.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_SYS_UN_H
#include <sys/un.h>
#endif
#include "x11drv.h"
#include "winternl.h"
#include "wine/library.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
wgl
);
WINE_DECLARE_DEBUG_CHANNEL
(
winediag
);
#ifdef SONAME_LIBGL
...
...
@@ -351,6 +359,19 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
TRACE
(
"Client GLX vendor: : %s.
\n
"
,
WineGLInfo
.
glxClientVendor
);
TRACE
(
"Direct rendering enabled: %s
\n
"
,
WineGLInfo
.
glxDirect
?
"True"
:
"False"
);
if
(
!
WineGLInfo
.
glxDirect
)
{
int
fd
=
ConnectionNumber
(
gdi_display
);
struct
sockaddr_un
uaddr
;
unsigned
int
uaddrlen
=
sizeof
(
struct
sockaddr_un
);
/* In general indirect rendering on a local X11 server indicates a driver problem.
* Detect a local X11 server by checking whether the X11 socket is a Unix socket.
*/
if
(
!
getsockname
(
fd
,
&
uaddr
,
&
uaddrlen
)
&&
uaddr
.
sun_family
==
AF_UNIX
)
ERR_
(
winediag
)(
"Direct rendering is disabled, most likely your OpenGL drivers haven't been installed correctly
\n
"
);
}
if
(
vis
)
XFree
(
vis
);
if
(
ctx
)
{
pglXMakeCurrent
(
gdi_display
,
None
,
NULL
);
...
...
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