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
1070e075
Commit
1070e075
authored
May 13, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
May 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add missing GL locking to calls to FBO functions.
parent
12c4af8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
context.c
dlls/wined3d/context.c
+7
-2
No files found.
dlls/wined3d/context.c
View file @
1070e075
...
...
@@ -371,6 +371,8 @@ void context_resource_released(IWineD3DDevice *iface, IWineD3DResource *resource
{
struct
fbo_entry
*
entry
,
*
entry2
;
ENTER_GL
();
LIST_FOR_EACH_ENTRY_SAFE
(
entry
,
entry2
,
&
This
->
contexts
[
i
]
->
fbo_list
,
struct
fbo_entry
,
entry
)
{
BOOL
destroyed
=
FALSE
;
...
...
@@ -388,6 +390,8 @@ void context_resource_released(IWineD3DDevice *iface, IWineD3DResource *resource
if
(
!
destroyed
&&
entry
->
depth_stencil
==
(
IWineD3DSurface
*
)
resource
)
context_destroy_fbo_entry
(
This
,
entry
);
}
LEAVE_GL
();
}
break
;
...
...
@@ -1599,7 +1603,9 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU
case
CTXUSAGE_CLEAR
:
case
CTXUSAGE_DRAWPRIM
:
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
{
ENTER_GL
();
context_apply_fbo_state
((
IWineD3DDevice
*
)
This
);
LEAVE_GL
();
}
if
(
context
->
draw_buffer_dirty
)
{
apply_draw_buffer
(
This
,
target
,
FALSE
);
...
...
@@ -1611,10 +1617,9 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
{
if
(
This
->
render_offscreen
)
{
FIXME
(
"Activating for CTXUSAGE_BLIT for an offscreen target with ORM_FBO. This should be avoided.
\n
"
);
ENTER_GL
();
context_bind_fbo
((
IWineD3DDevice
*
)
This
,
GL_FRAMEBUFFER_EXT
,
&
context
->
dst_fbo
);
context_attach_surface_fbo
(
This
,
GL_FRAMEBUFFER_EXT
,
0
,
target
);
ENTER_GL
();
GL_EXTCALL
(
glFramebufferRenderbufferEXT
(
GL_FRAMEBUFFER_EXT
,
GL_DEPTH_ATTACHMENT_EXT
,
GL_RENDERBUFFER_EXT
,
0
));
checkGLcall
(
"glFramebufferRenderbufferEXT"
);
LEAVE_GL
();
...
...
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