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
a2692366
Commit
a2692366
authored
Sep 18, 2008
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move FBO handling functions to context.c.
parent
2e8dec41
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
context.c
dlls/wined3d/context.c
+0
-0
device.c
dlls/wined3d/device.c
+0
-0
surface.c
dlls/wined3d/surface.c
+3
-3
wined3d_private.h
dlls/wined3d/wined3d_private.h
+3
-4
No files found.
dlls/wined3d/context.c
View file @
a2692366
This diff is collapsed.
Click to expand it.
dlls/wined3d/device.c
View file @
a2692366
This diff is collapsed.
Click to expand it.
dlls/wined3d/surface.c
View file @
a2692366
...
...
@@ -3995,17 +3995,17 @@ void surface_load_ds_location(IWineD3DSurface *iface, DWORD location) {
device
->
depth_blt_rb_h
=
This
->
currentDesc
.
Height
;
}
bind_fbo
((
IWineD3DDevice
*
)
device
,
GL_FRAMEBUFFER_EXT
,
&
device
->
activeContext
->
dst_fbo
);
context_
bind_fbo
((
IWineD3DDevice
*
)
device
,
GL_FRAMEBUFFER_EXT
,
&
device
->
activeContext
->
dst_fbo
);
GL_EXTCALL
(
glFramebufferRenderbufferEXT
(
GL_FRAMEBUFFER_EXT
,
GL_COLOR_ATTACHMENT0_EXT
,
GL_RENDERBUFFER_EXT
,
device
->
depth_blt_rb
));
checkGLcall
(
"glFramebufferRenderbufferEXT"
);
attach_depth_stencil_fbo
(
device
,
GL_FRAMEBUFFER_EXT
,
iface
,
FALSE
);
context_
attach_depth_stencil_fbo
(
device
,
GL_FRAMEBUFFER_EXT
,
iface
,
FALSE
);
/* Do the actual blit */
depth_blt
((
IWineD3DDevice
*
)
device
,
device
->
depth_blt_texture
,
This
->
currentDesc
.
Width
,
This
->
currentDesc
.
Height
);
checkGLcall
(
"depth_blt"
);
if
(
device
->
render_offscreen
)
{
bind_fbo
((
IWineD3DDevice
*
)
device
,
GL_FRAMEBUFFER_EXT
,
&
device
->
activeContext
->
fbo
);
context_
bind_fbo
((
IWineD3DDevice
*
)
device
,
GL_FRAMEBUFFER_EXT
,
&
device
->
activeContext
->
fbo
);
}
else
{
GL_EXTCALL
(
glBindFramebufferEXT
(
GL_FRAMEBUFFER_EXT
,
0
));
checkGLcall
(
"glBindFramebuffer()"
);
...
...
dlls/wined3d/wined3d_private.h
View file @
a2692366
...
...
@@ -630,7 +630,9 @@ typedef enum ContextUsage {
void
ActivateContext
(
IWineD3DDeviceImpl
*
device
,
IWineD3DSurface
*
target
,
ContextUsage
usage
);
WineD3DContext
*
CreateContext
(
IWineD3DDeviceImpl
*
This
,
IWineD3DSurfaceImpl
*
target
,
HWND
win
,
BOOL
create_pbuffer
,
const
WINED3DPRESENT_PARAMETERS
*
pPresentParms
);
void
DestroyContext
(
IWineD3DDeviceImpl
*
This
,
WineD3DContext
*
context
);
void
apply_fbo_state
(
IWineD3DDevice
*
iface
);
void
context_bind_fbo
(
IWineD3DDevice
*
iface
,
GLenum
target
,
GLuint
*
fbo
);
void
context_attach_depth_stencil_fbo
(
IWineD3DDeviceImpl
*
This
,
GLenum
fbo_target
,
IWineD3DSurface
*
depth_stencil
,
BOOL
use_render_buffer
);
void
context_attach_surface_fbo
(
IWineD3DDeviceImpl
*
This
,
GLenum
fbo_target
,
DWORD
idx
,
IWineD3DSurface
*
surface
);
void
delete_opengl_contexts
(
IWineD3DDevice
*
iface
,
IWineD3DSwapChain
*
swapchain
);
HRESULT
create_primary_opengl_context
(
IWineD3DDevice
*
iface
,
IWineD3DSwapChain
*
swapchain
);
...
...
@@ -2431,9 +2433,6 @@ static inline BOOL use_ps(IWineD3DDeviceImpl *device) {
void
stretch_rect_fbo
(
IWineD3DDevice
*
iface
,
IWineD3DSurface
*
src_surface
,
WINED3DRECT
*
src_rect
,
IWineD3DSurface
*
dst_surface
,
WINED3DRECT
*
dst_rect
,
const
WINED3DTEXTUREFILTERTYPE
filter
,
BOOL
flip
);
void
bind_fbo
(
IWineD3DDevice
*
iface
,
GLenum
target
,
GLuint
*
fbo
);
void
attach_depth_stencil_fbo
(
IWineD3DDeviceImpl
*
This
,
GLenum
fbo_target
,
IWineD3DSurface
*
depth_stencil
,
BOOL
use_render_buffer
);
void
attach_surface_fbo
(
IWineD3DDeviceImpl
*
This
,
GLenum
fbo_target
,
DWORD
idx
,
IWineD3DSurface
*
surface
);
void
depth_blt
(
IWineD3DDevice
*
iface
,
GLuint
texture
,
GLsizei
w
,
GLsizei
h
);
#endif
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