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
d28a310f
Commit
d28a310f
authored
Aug 03, 2008
by
H. Verbeet
Committed by
Alexandre Julliard
Aug 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use CTXUSAGE_RESOURCELOAD for ActivateContext() in color_fill_fbo().
CTXUSAGE_CLEAR will apply the FBO state in a later patch.
parent
f037eb86
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
device.c
dlls/wined3d/device.c
+6
-2
No files found.
dlls/wined3d/device.c
View file @
d28a310f
...
...
@@ -6182,7 +6182,7 @@ static void color_fill_fbo(IWineD3DDevice *iface, IWineD3DSurface *surface, CONS
TRACE
(
"Surface %p is onscreen
\n
"
,
surface
);
ActivateContext
(
This
,
surface
,
CTXUSAGE_
CLEAR
);
ActivateContext
(
This
,
surface
,
CTXUSAGE_
RESOURCELOAD
);
ENTER_GL
();
GL_EXTCALL
(
glBindFramebufferEXT
(
GL_FRAMEBUFFER_EXT
,
0
));
buffer
=
surface_get_gl_buffer
(
surface
,
swapchain
);
...
...
@@ -6191,7 +6191,7 @@ static void color_fill_fbo(IWineD3DDevice *iface, IWineD3DSurface *surface, CONS
}
else
{
TRACE
(
"Surface %p is offscreen
\n
"
,
surface
);
ActivateContext
(
This
,
This
->
lastActiveRenderTarget
,
CTXUSAGE_
CLEAR
);
ActivateContext
(
This
,
This
->
lastActiveRenderTarget
,
CTXUSAGE_
RESOURCELOAD
);
ENTER_GL
();
bind_fbo
(
iface
,
GL_FRAMEBUFFER_EXT
,
&
This
->
dst_fbo
);
attach_surface_fbo
(
This
,
GL_FRAMEBUFFER_EXT
,
0
,
surface
);
...
...
@@ -6211,6 +6211,10 @@ static void color_fill_fbo(IWineD3DDevice *iface, IWineD3DSurface *surface, CONS
}
else
{
glDisable
(
GL_SCISSOR_TEST
);
}
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_SCISSORTESTENABLE
));
glDisable
(
GL_BLEND
);
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_ALPHABLENDENABLE
));
glColorMask
(
GL_TRUE
,
GL_TRUE
,
GL_TRUE
,
GL_TRUE
);
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
));
...
...
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