Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
06936f04
Commit
06936f04
authored
May 27, 2009
by
Louis Lenders
Committed by
Alexandre Julliard
May 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix CheckDeviceMultiSampleType when queried with D3DMULTISAMPLE_NONE.
parent
cc688148
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
device.c
dlls/d3d9/tests/device.c
+2
-2
directx.c
dlls/wined3d/directx.c
+4
-1
No files found.
dlls/d3d9/tests/device.c
View file @
06936f04
...
...
@@ -173,12 +173,12 @@ static void test_checkdevicemultisampletype(void)
hr
=
IDirect3D9_CheckDeviceMultiSampleType
(
pD3d
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
D3DFMT_X8R8G8B8
,
TRUE
,
D3DMULTISAMPLE_NONE
,
&
qualityLevels
);
ok
(
SUCCEEDED
(
hr
),
"CheckDeviceMultiSampleType failed with (%08x)
\n
"
,
hr
);
todo_wine
ok
(
qualityLevels
==
1
,
"qualitylevel is not 1 but %d
\n
"
,
qualityLevels
);
ok
(
qualityLevels
==
1
,
"qualitylevel is not 1 but %d
\n
"
,
qualityLevels
);
hr
=
IDirect3D9_CheckDeviceMultiSampleType
(
pD3d
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
D3DFMT_X8R8G8B8
,
FALSE
,
D3DMULTISAMPLE_NONE
,
&
qualityLevels
);
ok
(
SUCCEEDED
(
hr
),
"CheckDeviceMultiSampleType failed with (%08x)
\n
"
,
hr
);
todo_wine
ok
(
qualityLevels
==
1
,
"qualitylevel is not 1 but %d
\n
"
,
qualityLevels
);
ok
(
qualityLevels
==
1
,
"qualitylevel is not 1 but %d
\n
"
,
qualityLevels
);
cleanup:
if
(
pD3d
)
IUnknown_Release
(
pD3d
);
...
...
dlls/wined3d/directx.c
View file @
06936f04
...
...
@@ -1915,7 +1915,10 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceMultiSampleType(IWineD3D *iface, U
/* TODO: handle Windowed, add more quality levels */
if
(
WINED3DMULTISAMPLE_NONE
==
MultiSampleType
)
return
WINED3D_OK
;
if
(
WINED3DMULTISAMPLE_NONE
==
MultiSampleType
)
{
if
(
pQualityLevels
)
*
pQualityLevels
=
1
;
return
WINED3D_OK
;
}
/* By default multisampling is disabled right now as it causes issues
* on some Nvidia driver versions and it doesn't work well in combination
...
...
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