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
69bdff62
Commit
69bdff62
authored
May 22, 2012
by
Henri Verbeet
Committed by
Alexandre Julliard
May 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Avoid moving buffers while they're mapped.
parent
263df244
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
buffer.c
dlls/wined3d/buffer.c
+7
-1
No files found.
dlls/wined3d/buffer.c
View file @
69bdff62
...
...
@@ -476,7 +476,7 @@ void buffer_get_memory(struct wined3d_buffer *buffer, const struct wined3d_gl_in
data
->
buffer_object
=
buffer
->
buffer_object
;
if
(
!
buffer
->
buffer_object
)
{
if
(
buffer
->
flags
&
WINED3D_BUFFER_CREATEBO
)
if
(
(
buffer
->
flags
&
WINED3D_BUFFER_CREATEBO
)
&&
!
buffer
->
resource
.
map_count
)
{
buffer_create_buffer_object
(
buffer
,
gl_info
);
buffer
->
flags
&=
~
WINED3D_BUFFER_CREATEBO
;
...
...
@@ -753,6 +753,12 @@ void CDECL wined3d_buffer_preload(struct wined3d_buffer *buffer)
TRACE
(
"buffer %p.
\n
"
,
buffer
);
if
(
buffer
->
resource
.
map_count
)
{
WARN
(
"Buffer is mapped, skipping preload.
\n
"
);
return
;
}
buffer
->
flags
&=
~
(
WINED3D_BUFFER_NOSYNC
|
WINED3D_BUFFER_DISCARD
);
if
(
!
buffer
->
buffer_object
)
...
...
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