Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
c46c53a1
Commit
c46c53a1
authored
Jan 02, 2008
by
H. Verbeet
Committed by
Alexandre Julliard
Jan 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Call ActivateContext regardless of WINED3DCREATE_MULTITHREADED.
parent
af268c62
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
15 deletions
+6
-15
device.c
dlls/wined3d/device.c
+3
-9
indexbuffer.c
dlls/wined3d/indexbuffer.c
+1
-3
surface.c
dlls/wined3d/surface.c
+2
-3
No files found.
dlls/wined3d/device.c
View file @
c46c53a1
...
...
@@ -4246,12 +4246,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_ProcessVertices(IWineD3DDevice *iface,
ERR
(
"Output vertex declaration not implemented yet
\n
"
);
}
/* Need any context to write to the vbo. In a non-multithreaded environment a context is there anyway,
* and this call is quite performance critical, so don't call needlessly
*/
if
(
This
->
createParms
.
BehaviorFlags
&
WINED3DCREATE_MULTITHREADED
)
{
ActivateContext
(
This
,
This
->
lastActiveRenderTarget
,
CTXUSAGE_RESOURCELOAD
);
}
/* Need any context to write to the vbo. */
ActivateContext
(
This
,
This
->
lastActiveRenderTarget
,
CTXUSAGE_RESOURCELOAD
);
/* ProcessVertices reads from vertex buffers, which have to be assigned. DrawPrimitive and DrawPrimitiveUP
* control the streamIsUP flag, thus restore it afterwards.
...
...
@@ -4741,9 +4737,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_EndScene(IWineD3DDevice *iface) {
return
WINED3DERR_INVALIDCALL
;
}
if
(
This
->
createParms
.
BehaviorFlags
&
WINED3DCREATE_MULTITHREADED
)
{
ActivateContext
(
This
,
This
->
lastActiveRenderTarget
,
CTXUSAGE_RESOURCELOAD
);
}
ActivateContext
(
This
,
This
->
lastActiveRenderTarget
,
CTXUSAGE_RESOURCELOAD
);
/* We only have to do this if we need to read the, swapbuffers performs a flush for us */
ENTER_GL
();
glFlush
();
...
...
dlls/wined3d/indexbuffer.c
View file @
c46c53a1
...
...
@@ -158,9 +158,7 @@ static HRESULT WINAPI IWineD3DIndexBufferImpl_Unlock(IWineD3DIndexBuffer *iface)
if
(
locks
==
0
&&
This
->
vbo
&&
(
This
->
dirtyend
-
This
->
dirtystart
)
>
0
)
{
IWineD3DDeviceImpl
*
device
=
This
->
resource
.
wineD3DDevice
;
if
(
device
->
createParms
.
BehaviorFlags
&
WINED3DCREATE_MULTITHREADED
)
{
ActivateContext
(
device
,
device
->
lastActiveRenderTarget
,
CTXUSAGE_RESOURCELOAD
);
}
ActivateContext
(
device
,
device
->
lastActiveRenderTarget
,
CTXUSAGE_RESOURCELOAD
);
ENTER_GL
();
GL_EXTCALL
(
glBindBufferARB
(
GL_ELEMENT_ARRAY_BUFFER_ARB
,
This
->
vbo
));
...
...
dlls/wined3d/surface.c
View file @
c46c53a1
...
...
@@ -44,9 +44,8 @@ static void surface_download_data(IWineD3DSurfaceImpl *This) {
return
;
}
if
(
myDevice
->
createParms
.
BehaviorFlags
&
WINED3DCREATE_MULTITHREADED
)
{
ActivateContext
(
myDevice
,
myDevice
->
lastActiveRenderTarget
,
CTXUSAGE_RESOURCELOAD
);
}
ActivateContext
(
myDevice
,
myDevice
->
lastActiveRenderTarget
,
CTXUSAGE_RESOURCELOAD
);
if
(
This
->
Flags
&
SFLAG_CONVERTED
)
{
FIXME
(
"Read back converted textures unsupported, format=%s
\n
"
,
debug_d3dformat
(
This
->
resource
.
format
));
return
;
...
...
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