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
444de4aa
Commit
444de4aa
authored
Feb 25, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Feb 25, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Don't pass 1 for multisample type to wined3d.
It has a different meaning there.
parent
b4830feb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
device.c
dlls/d3d10core/device.c
+4
-3
No files found.
dlls/d3d10core/device.c
View file @
444de4aa
...
...
@@ -661,7 +661,8 @@ static HRESULT STDMETHODCALLTYPE d3d10_device_CreateTexture2D(ID3D10Device *ifac
hr
=
IWineD3DDevice_CreateSurface
(
This
->
wined3d_device
,
desc
->
Width
,
desc
->
Height
,
wined3dformat_from_dxgi_format
(
desc
->
Format
),
FALSE
,
FALSE
,
0
,
&
object
->
wined3d_surface
,
WINED3DRTYPE_SURFACE
,
desc
->
Usage
,
WINED3DPOOL_DEFAULT
,
desc
->
SampleDesc
.
Count
,
desc
->
SampleDesc
.
Quality
,
NULL
,
SURFACE_OPENGL
,
(
IUnknown
*
)
object
);
desc
->
SampleDesc
.
Count
>
1
?
desc
->
SampleDesc
.
Count
:
WINED3DMULTISAMPLE_NONE
,
desc
->
SampleDesc
.
Quality
,
NULL
,
SURFACE_OPENGL
,
(
IUnknown
*
)
object
);
if
(
FAILED
(
hr
))
{
ERR
(
"CreateSurface failed, returning %#x
\n
"
,
hr
);
...
...
@@ -1265,7 +1266,7 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateRenderTarget(IWineD3DDevice
desc
.
MipLevels
=
1
;
desc
.
ArraySize
=
1
;
desc
.
Format
=
dxgi_format_from_wined3dformat
(
format
);
desc
.
SampleDesc
.
Count
=
multisample_type
;
desc
.
SampleDesc
.
Count
=
multisample_type
?
multisample_type
:
1
;
desc
.
SampleDesc
.
Quality
=
multisample_quality
;
desc
.
Usage
=
D3D10_USAGE_DEFAULT
;
desc
.
BindFlags
=
D3D10_BIND_RENDER_TARGET
;
...
...
@@ -1304,7 +1305,7 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateDepthStencilSurface(IWineD3
desc
.
MipLevels
=
1
;
desc
.
ArraySize
=
1
;
desc
.
Format
=
dxgi_format_from_wined3dformat
(
format
);
desc
.
SampleDesc
.
Count
=
multisample_type
;
desc
.
SampleDesc
.
Count
=
multisample_type
?
multisample_type
:
1
;
desc
.
SampleDesc
.
Quality
=
multisample_quality
;
desc
.
Usage
=
D3D10_USAGE_DEFAULT
;
desc
.
BindFlags
=
D3D10_BIND_RENDER_TARGET
;
...
...
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