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
a1402e06
Commit
a1402e06
authored
Aug 14, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add a separate function for guessing the vendor.
parent
c573d0a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
26 deletions
+23
-26
directx.c
dlls/wined3d/directx.c
+23
-26
No files found.
dlls/wined3d/directx.c
View file @
a1402e06
...
...
@@ -946,6 +946,28 @@ static void fixup_extensions(struct wined3d_gl_info *gl_info, const char *gl_ren
}
}
static
GL_Vendors
wined3d_guess_vendor
(
const
char
*
gl_vendor
,
const
char
*
gl_renderer
)
{
if
(
strstr
(
gl_vendor
,
"NVIDIA"
))
return
VENDOR_NVIDIA
;
if
(
strstr
(
gl_vendor
,
"ATI"
))
return
VENDOR_ATI
;
if
(
strstr
(
gl_vendor
,
"Intel(R)"
)
||
strstr
(
gl_renderer
,
"Intel(R)"
)
||
strstr
(
gl_vendor
,
"Intel Inc."
))
return
VENDOR_INTEL
;
if
(
strstr
(
gl_vendor
,
"Mesa"
)
||
strstr
(
gl_vendor
,
"Tungsten Graphics, Inc."
))
return
VENDOR_MESA
;
FIXME_
(
d3d_caps
)(
"Received unrecognized GL_VENDOR %s. Returning VENDOR_WINE.
\n
"
,
debugstr_a
(
gl_vendor
));
return
VENDOR_WINE
;
}
/* Context activation is done by the caller. */
static
BOOL
IWineD3DImpl_FillGLCaps
(
struct
wined3d_gl_info
*
gl_info
)
{
...
...
@@ -992,32 +1014,7 @@ static BOOL IWineD3DImpl_FillGLCaps(struct wined3d_gl_info *gl_info)
HeapFree
(
GetProcessHeap
(),
0
,
gl_renderer
);
return
FALSE
;
}
/* Fill in the GL vendor */
if
(
strstr
(
gl_string
,
"NVIDIA"
))
{
gl_info
->
gl_vendor
=
VENDOR_NVIDIA
;
}
else
if
(
strstr
(
gl_string
,
"ATI"
))
{
gl_info
->
gl_vendor
=
VENDOR_ATI
;
}
else
if
(
strstr
(
gl_string
,
"Intel(R)"
)
||
strstr
(
gl_renderer
,
"Intel(R)"
)
||
strstr
(
gl_string
,
"Intel Inc."
))
{
gl_info
->
gl_vendor
=
VENDOR_INTEL
;
}
else
if
(
strstr
(
gl_string
,
"Mesa"
)
||
strstr
(
gl_string
,
"Tungsten Graphics, Inc."
))
{
gl_info
->
gl_vendor
=
VENDOR_MESA
;
}
else
{
FIXME_
(
d3d_caps
)(
"Received unrecognized GL_VENDOR %s. Setting VENDOR_WINE.
\n
"
,
debugstr_a
(
gl_string
));
gl_info
->
gl_vendor
=
VENDOR_WINE
;
}
gl_info
->
gl_vendor
=
wined3d_guess_vendor
(
gl_string
,
gl_renderer
);
TRACE_
(
d3d_caps
)(
"found GL_VENDOR (%s)->(0x%04x)
\n
"
,
debugstr_a
(
gl_string
),
gl_info
->
gl_vendor
);
/* Parse the GL_VERSION field into major and minor information */
...
...
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