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
00728308
Commit
00728308
authored
Aug 05, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Invalidate STATE_STREAMSRC in buffer_unload() if needed.
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
005ed856
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
13 deletions
+8
-13
buffer.c
dlls/wined3d/buffer.c
+8
-10
device.c
dlls/wined3d/device.c
+0
-3
No files found.
dlls/wined3d/buffer.c
View file @
00728308
...
...
@@ -538,6 +538,14 @@ static void buffer_unload(struct wined3d_resource *resource)
buffer
->
stride
=
0
;
buffer
->
conversion_stride
=
0
;
buffer
->
flags
&=
~
WINED3D_BUFFER_HASDESC
;
/* The stream source state handler might have read the memory of the
* vertex buffer already and got the memory in the vbo which is not
* valid any longer. Dirtify the stream source to force a reload. This
* happens only once per changed vertexbuffer and should occur rather
* rarely. */
if
(
resource
->
bind_count
)
device_invalidate_state
(
device
,
STATE_STREAMSRC
);
}
resource_unload
(
resource
);
...
...
@@ -545,18 +553,8 @@ static void buffer_unload(struct wined3d_resource *resource)
static
void
wined3d_buffer_drop_bo
(
struct
wined3d_buffer
*
buffer
)
{
struct
wined3d_device
*
device
=
buffer
->
resource
.
device
;
buffer
->
flags
&=
~
WINED3D_BUFFER_USE_BO
;
buffer_unload
(
&
buffer
->
resource
);
/* The stream source state handler might have read the memory of
* the vertex buffer already and got the memory in the vbo which
* is not valid any longer. Dirtify the stream source to force a
* reload. This happens only once per changed vertexbuffer and
* should occur rather rarely. */
if
(
buffer
->
resource
.
bind_count
)
device_invalidate_state
(
device
,
STATE_STREAMSRC
);
}
static
void
wined3d_buffer_destroy_object
(
void
*
object
)
...
...
dlls/wined3d/device.c
View file @
00728308
...
...
@@ -4547,9 +4547,6 @@ void CDECL wined3d_device_evict_managed_resources(struct wined3d_device *device)
resource
->
resource_ops
->
resource_unload
(
resource
);
}
}
/* Invalidate stream sources, the buffer(s) may have been evicted. */
device_invalidate_state
(
device
,
STATE_STREAMSRC
);
}
static
void
delete_opengl_contexts
(
struct
wined3d_device
*
device
,
struct
wined3d_swapchain
*
swapchain
)
...
...
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