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
de4f3dc8
Commit
de4f3dc8
authored
Apr 15, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Apr 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Merge match_apple and implementation_is_apple.
parent
39877a2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
12 deletions
+8
-12
directx.c
dlls/wined3d/directx.c
+7
-11
wined3d_gl.h
dlls/wined3d/wined3d_gl.h
+1
-1
No files found.
dlls/wined3d/directx.c
View file @
de4f3dc8
...
...
@@ -3850,7 +3850,7 @@ ULONG WINAPI D3DCB_DefaultDestroyVolume(IWineD3DVolume *pVolume) {
return
IUnknown_Release
(
volumeParent
);
}
static
BOOL
implementation_is
_apple
(
const
WineD3D_GL_Info
*
gl_info
)
static
BOOL
match
_apple
(
const
WineD3D_GL_Info
*
gl_info
)
{
/* MacOS has various specialities in the extensions it advertises. Some have to be loaded from
* the opengl 1.2+ core, while other extensions are advertised, but software emulated. So try to
...
...
@@ -4002,7 +4002,7 @@ static const struct driver_version_information driver_version_table[] = {
/* TODO: Add information about legacy ATI hardware, Intel and other cards */
};
static
BOOL
match_ati_r300_to_500
(
WineD3D_GL_Info
*
gl_info
)
{
static
BOOL
match_ati_r300_to_500
(
const
WineD3D_GL_Info
*
gl_info
)
{
if
(
gl_info
->
gl_vendor
!=
VENDOR_ATI
)
return
FALSE
;
if
(
gl_info
->
gl_card
==
CARD_ATI_RADEON_9500
)
return
TRUE
;
if
(
gl_info
->
gl_card
==
CARD_ATI_RADEON_X700
)
return
TRUE
;
...
...
@@ -4010,11 +4010,7 @@ static BOOL match_ati_r300_to_500(WineD3D_GL_Info *gl_info) {
return
FALSE
;
}
static
BOOL
match_apple
(
WineD3D_GL_Info
*
gl_info
)
{
return
implementation_is_apple
(
gl_info
);
}
static
BOOL
match_geforce5
(
WineD3D_GL_Info
*
gl_info
)
{
static
BOOL
match_geforce5
(
const
WineD3D_GL_Info
*
gl_info
)
{
if
(
gl_info
->
gl_vendor
==
VENDOR_NVIDIA
)
{
if
(
gl_info
->
gl_card
==
CARD_NVIDIA_GEFORCEFX_5800
||
gl_info
->
gl_card
==
CARD_NVIDIA_GEFORCEFX_5600
)
{
return
TRUE
;
...
...
@@ -4023,12 +4019,12 @@ static BOOL match_geforce5(WineD3D_GL_Info *gl_info) {
return
FALSE
;
}
static
BOOL
match_apple_intel
(
WineD3D_GL_Info
*
gl_info
)
{
return
gl_info
->
gl_vendor
==
VENDOR_INTEL
&&
implementation_is
_apple
(
gl_info
);
static
BOOL
match_apple_intel
(
const
WineD3D_GL_Info
*
gl_info
)
{
return
gl_info
->
gl_vendor
==
VENDOR_INTEL
&&
match
_apple
(
gl_info
);
}
static
BOOL
match_apple_nonr500ati
(
WineD3D_GL_Info
*
gl_info
)
{
if
(
!
implementation_is
_apple
(
gl_info
))
return
FALSE
;
static
BOOL
match_apple_nonr500ati
(
const
WineD3D_GL_Info
*
gl_info
)
{
if
(
!
match
_apple
(
gl_info
))
return
FALSE
;
if
(
gl_info
->
gl_vendor
!=
VENDOR_ATI
)
return
FALSE
;
if
(
gl_info
->
gl_card
==
CARD_ATI_RADEON_X1600
)
return
FALSE
;
return
TRUE
;
...
...
dlls/wined3d/wined3d_gl.h
View file @
de4f3dc8
...
...
@@ -3965,7 +3965,7 @@ typedef struct _WineD3D_GL_Info {
#undef USE_GL_FUNC
struct
driver_quirk
{
BOOL
(
*
match
)(
WineD3D_GL_Info
*
gl_info
);
BOOL
(
*
match
)(
const
WineD3D_GL_Info
*
gl_info
);
void
(
*
apply
)(
WineD3D_GL_Info
*
gl_info
);
const
char
*
description
;
};
...
...
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