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
9ceda3a6
Commit
9ceda3a6
authored
Jul 22, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move some context selection code from ActivateContext() to FindContext().
parent
219d3abd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
context.c
dlls/wined3d/context.c
+11
-11
No files found.
dlls/wined3d/context.c
View file @
9ceda3a6
...
@@ -1608,6 +1608,13 @@ static inline WineD3DContext *FindContext(IWineD3DDeviceImpl *This, IWineD3DSurf
...
@@ -1608,6 +1608,13 @@ static inline WineD3DContext *FindContext(IWineD3DDeviceImpl *This, IWineD3DSurf
const
struct
GlPixelFormatDesc
*
old
,
*
new
;
const
struct
GlPixelFormatDesc
*
old
,
*
new
;
struct
WineD3DContext
*
context
;
struct
WineD3DContext
*
context
;
if
(
!
target
)
target
=
This
->
activeContext
->
current_rt
;
if
(
This
->
activeContext
->
current_rt
==
target
&&
This
->
activeContext
->
tid
==
tid
)
{
return
This
->
activeContext
;
}
if
(
SUCCEEDED
(
IWineD3DSurface_GetContainer
(
target
,
&
IID_IWineD3DSwapChain
,
(
void
**
)
&
swapchain
)))
{
if
(
SUCCEEDED
(
IWineD3DSurface_GetContainer
(
target
,
&
IID_IWineD3DSwapChain
,
(
void
**
)
&
swapchain
)))
{
TRACE
(
"Rendering onscreen
\n
"
);
TRACE
(
"Rendering onscreen
\n
"
);
...
@@ -1763,6 +1770,9 @@ retry:
...
@@ -1763,6 +1770,9 @@ retry:
This
->
isInDraw
=
oldInDraw
;
This
->
isInDraw
=
oldInDraw
;
}
}
context
->
draw_buffer_dirty
=
TRUE
;
context
->
current_rt
=
target
;
return
context
;
return
context
;
}
}
...
@@ -1834,17 +1844,7 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU
...
@@ -1834,17 +1844,7 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU
TRACE
(
"(%p): Selecting context for render target %p, thread %d
\n
"
,
This
,
target
,
tid
);
TRACE
(
"(%p): Selecting context for render target %p, thread %d
\n
"
,
This
,
target
,
tid
);
if
(
!
target
)
target
=
This
->
activeContext
->
current_rt
;
context
=
FindContext
(
This
,
target
,
tid
);
if
(
This
->
activeContext
->
current_rt
!=
target
||
This
->
activeContext
->
tid
!=
tid
)
{
context
=
FindContext
(
This
,
target
,
tid
);
context
->
draw_buffer_dirty
=
TRUE
;
context
->
current_rt
=
target
;
}
else
{
/* Stick to the old context */
context
=
This
->
activeContext
;
}
gl_info
=
context
->
gl_info
;
gl_info
=
context
->
gl_info
;
...
...
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