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
a2244051
Commit
a2244051
authored
Jun 08, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Jun 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use context_attach_depth_stencil_fbo() to clear FBO depth attachments.
parent
13aea3a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
context.c
dlls/wined3d/context.c
+1
-2
device.c
dlls/wined3d/device.c
+3
-6
No files found.
dlls/wined3d/context.c
View file @
a2244051
...
@@ -1660,8 +1660,7 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU
...
@@ -1660,8 +1660,7 @@ void ActivateContext(IWineD3DDeviceImpl *This, IWineD3DSurface *target, ContextU
ENTER_GL
();
ENTER_GL
();
context_bind_fbo
((
IWineD3DDevice
*
)
This
,
GL_FRAMEBUFFER_EXT
,
&
context
->
dst_fbo
);
context_bind_fbo
((
IWineD3DDevice
*
)
This
,
GL_FRAMEBUFFER_EXT
,
&
context
->
dst_fbo
);
context_attach_surface_fbo
(
This
,
GL_FRAMEBUFFER_EXT
,
0
,
target
);
context_attach_surface_fbo
(
This
,
GL_FRAMEBUFFER_EXT
,
0
,
target
);
GL_EXTCALL
(
glFramebufferRenderbufferEXT
(
GL_FRAMEBUFFER_EXT
,
GL_DEPTH_ATTACHMENT_EXT
,
GL_RENDERBUFFER_EXT
,
0
));
context_attach_depth_stencil_fbo
(
This
,
GL_FRAMEBUFFER_EXT
,
NULL
,
FALSE
);
checkGLcall
(
"glFramebufferRenderbufferEXT"
);
LEAVE_GL
();
LEAVE_GL
();
}
else
{
}
else
{
ENTER_GL
();
ENTER_GL
();
...
...
dlls/wined3d/device.c
View file @
a2244051
...
@@ -6176,8 +6176,7 @@ static void color_fill_fbo(IWineD3DDevice *iface, IWineD3DSurface *surface,
...
@@ -6176,8 +6176,7 @@ static void color_fill_fbo(IWineD3DDevice *iface, IWineD3DSurface *surface,
ENTER_GL
();
ENTER_GL
();
context_bind_fbo
(
iface
,
GL_FRAMEBUFFER_EXT
,
&
This
->
activeContext
->
dst_fbo
);
context_bind_fbo
(
iface
,
GL_FRAMEBUFFER_EXT
,
&
This
->
activeContext
->
dst_fbo
);
context_attach_surface_fbo
(
This
,
GL_FRAMEBUFFER_EXT
,
0
,
surface
);
context_attach_surface_fbo
(
This
,
GL_FRAMEBUFFER_EXT
,
0
,
surface
);
GL_EXTCALL
(
glFramebufferRenderbufferEXT
(
GL_FRAMEBUFFER_EXT
,
GL_DEPTH_ATTACHMENT_EXT
,
GL_RENDERBUFFER_EXT
,
0
));
context_attach_depth_stencil_fbo
(
This
,
GL_FRAMEBUFFER_EXT
,
NULL
,
FALSE
);
checkGLcall
(
"glFramebufferRenderbufferEXT"
);
}
}
if
(
rect
)
{
if
(
rect
)
{
...
@@ -6596,8 +6595,7 @@ void stretch_rect_fbo(IWineD3DDevice *iface, IWineD3DSurface *src_surface, WINED
...
@@ -6596,8 +6595,7 @@ void stretch_rect_fbo(IWineD3DDevice *iface, IWineD3DSurface *src_surface, WINED
context_attach_surface_fbo
(
This
,
GL_READ_FRAMEBUFFER_EXT
,
0
,
src_surface
);
context_attach_surface_fbo
(
This
,
GL_READ_FRAMEBUFFER_EXT
,
0
,
src_surface
);
glReadBuffer
(
GL_COLOR_ATTACHMENT0_EXT
);
glReadBuffer
(
GL_COLOR_ATTACHMENT0_EXT
);
checkGLcall
(
"glReadBuffer()"
);
checkGLcall
(
"glReadBuffer()"
);
GL_EXTCALL
(
glFramebufferRenderbufferEXT
(
GL_READ_FRAMEBUFFER_EXT
,
GL_DEPTH_ATTACHMENT_EXT
,
GL_RENDERBUFFER_EXT
,
0
));
context_attach_depth_stencil_fbo
(
This
,
GL_READ_FRAMEBUFFER_EXT
,
NULL
,
FALSE
);
checkGLcall
(
"glFramebufferRenderbufferEXT"
);
}
}
LEAVE_GL
();
LEAVE_GL
();
...
@@ -6644,8 +6642,7 @@ void stretch_rect_fbo(IWineD3DDevice *iface, IWineD3DSurface *src_surface, WINED
...
@@ -6644,8 +6642,7 @@ void stretch_rect_fbo(IWineD3DDevice *iface, IWineD3DSurface *src_surface, WINED
context_attach_surface_fbo
(
This
,
GL_DRAW_FRAMEBUFFER_EXT
,
0
,
dst_surface
);
context_attach_surface_fbo
(
This
,
GL_DRAW_FRAMEBUFFER_EXT
,
0
,
dst_surface
);
glDrawBuffer
(
GL_COLOR_ATTACHMENT0_EXT
);
glDrawBuffer
(
GL_COLOR_ATTACHMENT0_EXT
);
checkGLcall
(
"glDrawBuffer()"
);
checkGLcall
(
"glDrawBuffer()"
);
GL_EXTCALL
(
glFramebufferRenderbufferEXT
(
GL_DRAW_FRAMEBUFFER_EXT
,
GL_DEPTH_ATTACHMENT_EXT
,
GL_RENDERBUFFER_EXT
,
0
));
context_attach_depth_stencil_fbo
(
This
,
GL_DRAW_FRAMEBUFFER_EXT
,
NULL
,
FALSE
);
checkGLcall
(
"glFramebufferRenderbufferEXT"
);
}
}
glDisable
(
GL_SCISSOR_TEST
);
glDisable
(
GL_SCISSOR_TEST
);
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_SCISSORTESTENABLE
));
IWineD3DDeviceImpl_MarkStateDirty
(
This
,
STATE_RENDER
(
WINED3DRS_SCISSORTESTENABLE
));
...
...
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