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
57074556
Commit
57074556
authored
Aug 28, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d10core: Use proper helpers for iface calls.
parent
cbf155af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
device.c
dlls/d3d10core/tests/device.c
+1
-1
texture.c
dlls/d3d10core/texture.c
+3
-3
No files found.
dlls/d3d10core/tests/device.c
View file @
57074556
...
...
@@ -367,7 +367,7 @@ float4 main(const float4 color : COLOR) : SV_TARGET
hr
=
ID3D10Device_CreatePixelShader
(
device
,
ps_4_0
,
sizeof
(
ps_4_0
),
&
ps
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create SM4 vertex shader, hr %#x
\n
"
,
hr
);
if
(
ps
)
ID3D10
Vertex
Shader_Release
(
ps
);
ID3D10
Pixel
Shader_Release
(
ps
);
}
START_TEST
(
device
)
...
...
dlls/d3d10core/texture.c
View file @
57074556
...
...
@@ -50,7 +50,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_texture2d_QueryInterface(ID3D10Texture2D
if
(
This
->
dxgi_surface
)
{
TRACE
(
"Forwarding to dxgi surface
\n
"
);
return
I
DXGISurface
_QueryInterface
(
This
->
dxgi_surface
,
riid
,
object
);
return
I
Unknown
_QueryInterface
(
This
->
dxgi_surface
,
riid
,
object
);
}
WARN
(
"%s not implemented, returning E_NOINTERFACE
\n
"
,
debugstr_guid
(
riid
));
...
...
@@ -76,7 +76,7 @@ static void STDMETHODCALLTYPE d3d10_texture2d_wined3d_object_released(void *pare
{
struct
d3d10_texture2d
*
This
=
parent
;
if
(
This
->
dxgi_surface
)
I
DXGISurface
_Release
(
This
->
dxgi_surface
);
if
(
This
->
dxgi_surface
)
I
Unknown
_Release
(
This
->
dxgi_surface
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
@@ -270,7 +270,7 @@ HRESULT d3d10_texture2d_init(struct d3d10_texture2d *texture, struct d3d10_devic
{
WARN
(
"Failed to create wined3d texture, hr %#x.
\n
"
,
hr
);
if
(
texture
->
dxgi_surface
)
I
DXGISurface
_Release
(
texture
->
dxgi_surface
);
I
Unknown
_Release
(
texture
->
dxgi_surface
);
return
hr
;
}
...
...
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