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
9ad3807c
Commit
9ad3807c
authored
Sep 29, 2007
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Oct 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Only call ENTER_GL for the parts in ActivateContext that actually need it.
parent
001f380a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
context.c
dlls/wined3d/context.c
+2
-3
No files found.
dlls/wined3d/context.c
View file @
9ad3807c
...
@@ -851,7 +851,6 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU
...
@@ -851,7 +851,6 @@ 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
);
ENTER_GL
();
if
(
This
->
lastActiveRenderTarget
!=
target
||
tid
!=
This
->
lastThread
)
{
if
(
This
->
lastActiveRenderTarget
!=
target
||
tid
!=
This
->
lastThread
)
{
context
=
FindContext
(
This
,
target
,
tid
);
context
=
FindContext
(
This
,
target
,
tid
);
This
->
lastActiveRenderTarget
=
target
;
This
->
lastActiveRenderTarget
=
target
;
...
@@ -865,15 +864,15 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU
...
@@ -865,15 +864,15 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU
if
(
context
!=
This
->
activeContext
)
{
if
(
context
!=
This
->
activeContext
)
{
BOOL
ret
;
BOOL
ret
;
TRACE
(
"Switching gl ctx to %p, hdc=%p ctx=%p
\n
"
,
context
,
context
->
hdc
,
context
->
glCtx
);
TRACE
(
"Switching gl ctx to %p, hdc=%p ctx=%p
\n
"
,
context
,
context
->
hdc
,
context
->
glCtx
);
LEAVE_GL
();
ret
=
pwglMakeCurrent
(
context
->
hdc
,
context
->
glCtx
);
ret
=
pwglMakeCurrent
(
context
->
hdc
,
context
->
glCtx
);
ENTER_GL
();
if
(
ret
==
FALSE
)
{
if
(
ret
==
FALSE
)
{
ERR
(
"Failed to activate the new context
\n
"
);
ERR
(
"Failed to activate the new context
\n
"
);
}
}
This
->
activeContext
=
context
;
This
->
activeContext
=
context
;
}
}
/* We only need ENTER_GL for the gl calls made below and for the helper functions which make GL calls */
ENTER_GL
();
switch
(
usage
)
{
switch
(
usage
)
{
case
CTXUSAGE_RESOURCELOAD
:
case
CTXUSAGE_RESOURCELOAD
:
/* This does not require any special states to be set up */
/* This does not require any special states to be set up */
...
...
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