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
024b5c22
Commit
024b5c22
authored
Apr 03, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Do not unset the index buffer on D3D device destruction.
parent
973b56dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
device.c
dlls/ddraw/device.c
+4
-6
No files found.
dlls/ddraw/device.c
View file @
024b5c22
...
...
@@ -288,15 +288,13 @@ IDirect3DDeviceImpl_7_Release(IDirect3DDevice7 *iface)
DWORD
i
;
EnterCriticalSection
(
&
ddraw_cs
);
/* There is no need to unset any resources here, wined3d will take
* care of that on Uninit3D(). */
/* Free the index buffer. */
IWineD3DDevice_SetIndexBuffer
(
This
->
wineD3DDevice
,
NULL
,
WINED3DFMT_UNKNOWN
);
wined3d_buffer_decref
(
This
->
indexbuffer
);
/* There is no need to unset the vertex buffer here, IWineD3DDevice_Uninit3D will do that when
* destroying the primary stateblock. If a vertex buffer is destroyed while it is bound
* IDirect3DVertexBuffer::Release will unset it.
*/
/* Set the device up to render to the front buffer since the back
* buffer will vanish soon. */
IWineD3DDevice_SetRenderTarget
(
This
->
wineD3DDevice
,
0
,
...
...
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