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
5a7091b8
Commit
5a7091b8
authored
Sep 02, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Do not preload buffers while under the GL lock in process_vertices_strided().
parent
bc2db78c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
device.c
dlls/wined3d/device.c
+9
-6
No files found.
dlls/wined3d/device.c
View file @
5a7091b8
...
...
@@ -3760,6 +3760,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_GetPixelShaderConstantF(
}
/* Context activation is done by the caller. */
/* Do not call while under the GL lock. */
#define copy_and_next(dest, src, size) memcpy(dest, src, size); dest += (size)
static
HRESULT
process_vertices_strided
(
IWineD3DDeviceImpl
*
This
,
DWORD
dwDestIndex
,
DWORD
dwCount
,
const
struct
wined3d_stream_info
*
stream_info
,
struct
wined3d_buffer
*
dest
,
DWORD
dwFlags
,
...
...
@@ -3784,9 +3785,6 @@ static HRESULT process_vertices_strided(IWineD3DDeviceImpl *This, DWORD dwDestIn
return
WINED3DERR_INVALIDCALL
;
}
/* We might access VBOs from this code, so hold the lock */
ENTER_GL
();
if
(
!
dest
->
resource
.
allocatedMemory
)
buffer_get_sysmem
(
dest
,
gl_info
);
...
...
@@ -4089,22 +4087,27 @@ static HRESULT process_vertices_strided(IWineD3DDeviceImpl *This, DWORD dwDestIn
}
}
if
(
dest_conv
)
{
if
(
dest_conv
)
{
ENTER_GL
();
GL_EXTCALL
(
glBindBufferARB
(
GL_ARRAY_BUFFER_ARB
,
dest
->
buffer_object
));
checkGLcall
(
"glBindBufferARB(GL_ARRAY_BUFFER_ARB)"
);
GL_EXTCALL
(
glBufferSubDataARB
(
GL_ARRAY_BUFFER_ARB
,
dwDestIndex
*
get_flexible_vertex_size
(
DestFVF
),
dwCount
*
get_flexible_vertex_size
(
DestFVF
),
dest_conv_addr
));
checkGLcall
(
"glBufferSubDataARB(GL_ARRAY_BUFFER_ARB)"
);
LEAVE_GL
();
HeapFree
(
GetProcessHeap
(),
0
,
dest_conv_addr
);
}
LEAVE_GL
();
return
WINED3D_OK
;
}
#undef copy_and_next
/* Do not call while under the GL lock. */
static
HRESULT
WINAPI
IWineD3DDeviceImpl_ProcessVertices
(
IWineD3DDevice
*
iface
,
UINT
SrcStartIndex
,
UINT
DestIndex
,
UINT
VertexCount
,
IWineD3DBuffer
*
pDestBuffer
,
IWineD3DVertexDeclaration
*
pVertexDecl
,
DWORD
Flags
,
DWORD
DestFVF
)
...
...
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